pub trait Backend {
// Required methods
fn name(&self) -> &'static str;
fn file_extension(&self) -> &'static str;
fn generate(&self, cfg: &Config, strict: bool) -> Result<String>;
}Required Methods§
fn name(&self) -> &'static str
fn file_extension(&self) -> &'static str
fn generate(&self, cfg: &Config, strict: bool) -> Result<String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".