Skip to main content

Generator

Trait Generator 

Source
pub trait Generator {
    // Required methods
    fn name(&self) -> &'static str;
    fn generate(&self, api: &Api, out_dir: &Utf8Path) -> Result<()>;
}

Required Methods§

Source

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

Source

fn generate(&self, api: &Api, out_dir: &Utf8Path) -> Result<()>

Implementors§