pub trait Render {
const ESTIMATED_LENGTH: usize;
// Required method
fn render_into<W: Write>(&self, writer: &mut W) -> Result;
// Provided method
fn render(&self) -> Result<String, Error> { ... }
}Expand description
Optimized render function trait.
Required Associated Constants§
Sourceconst ESTIMATED_LENGTH: usize
const ESTIMATED_LENGTH: usize
Estimated output length of the template.
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.