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