File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -175,9 +175,11 @@ impl<T: Template + ?Sized> Template for &T {
175
175
const MIME_TYPE : & ' static str = T :: MIME_TYPE ;
176
176
}
177
177
178
- /// Object-safe wrapper trait around [`Template`] implementers
178
+ /// [`dyn`-compatible] wrapper trait around [`Template`] implementers
179
179
///
180
- /// This trades reduced performance (mostly due to writing into `dyn Write`) for object safety.
180
+ /// This trades reduced performance (mostly due to writing into `dyn Write`) for dyn-compatibility.
181
+ ///
182
+ /// [`dyn`-compatible]: <https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility>
181
183
pub trait DynTemplate {
182
184
/// Helper method which allocates a new `String` and renders into it
183
185
fn dyn_render ( & self ) -> Result < String > ;
You can’t perform that action at this time.
0 commit comments