We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9bf11b commit 23f0e88Copy full SHA for 23f0e88
rinja/src/lib.rs
@@ -175,9 +175,11 @@ impl<T: Template + ?Sized> Template for &T {
175
const MIME_TYPE: &'static str = T::MIME_TYPE;
176
}
177
178
-/// Object-safe wrapper trait around [`Template`] implementers
+/// [`dyn`-compatible] wrapper trait around [`Template`] implementers
179
///
180
-/// 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.
181
+///
182
+/// [`dyn`-compatible]: <https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility>
183
pub trait DynTemplate {
184
/// Helper method which allocates a new `String` and renders into it
185
fn dyn_render(&self) -> Result<String>;
0 commit comments