diff --git a/rinja/src/lib.rs b/rinja/src/lib.rs index 3e61ff9f..758bd2ca 100644 --- a/rinja/src/lib.rs +++ b/rinja/src/lib.rs @@ -174,9 +174,11 @@ impl Template for &T { const MIME_TYPE: &'static str = T::MIME_TYPE; } -/// Object-safe wrapper trait around [`Template`] implementers +/// [`dyn`-compatible] wrapper trait around [`Template`] implementers /// -/// This trades reduced performance (mostly due to writing into `dyn Write`) for object safety. +/// This trades reduced performance (mostly due to writing into `dyn Write`) for dyn-compatibility. +/// +/// [`dyn`-compatible]: pub trait DynTemplate { /// Helper method which allocates a new `String` and renders into it fn dyn_render(&self) -> Result;