pub trait Template {
const EXTENSION: &'static str;
const MIME_TYPE: &'static str;
const SIZE_HINT: usize;
// Required method
fn write_fmt<W>(&self, w: &mut W) -> Result
where W: Write + ?Sized;
// Provided method
fn render(&self) -> String { ... }
}Required Associated Constants§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.