pub trait Generator {
// Required method
fn generate(&self, ctx: &GenerationContext<'_>) -> GenerationResult;
}Expand description
A pure code generator from an API graph to generated files.
Required Methods§
Sourcefn generate(&self, ctx: &GenerationContext<'_>) -> GenerationResult
fn generate(&self, ctx: &GenerationContext<'_>) -> GenerationResult
Generate files in memory from the provided context.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".