Skip to main content

Backend

Trait Backend 

Source
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§

Source

fn name(&self) -> &'static str

Source

fn file_extension(&self) -> &'static str

Source

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".

Implementors§