Skip to main content

CodeGenerator

Trait CodeGenerator 

Source
pub trait CodeGenerator {
    // Required methods
    fn id(&self) -> GeneratorId;
    fn generate(
        &self,
        ir: &IrSpec,
        config: &GeneratorConfig,
    ) -> Result<Vec<GeneratedFile>, GeneratorError>;
}
Expand description

Trait for code generators that produce files from an IR spec.

Required Methods§

Implementors§