pub trait TemplateEngine: Send + Sync {
// Required methods
fn render(&self, template: &str, context: &Value) -> Result<String>;
fn reload(&self) -> Result<()>;
}Required Methods§
fn render(&self, template: &str, context: &Value) -> Result<String>
fn reload(&self) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".