Skip to main content

Generator

Trait Generator 

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

Source

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

Implementors§