pub trait CodeGenerator {
type Config;
type Error: Error;
// Required method
fn generate(
&self,
ir: &IrSpec,
config: &Self::Config,
) -> Result<Vec<GeneratedFile>, Self::Error>;
}Expand description
Trait for code generators that produce files from an IR spec.