Trait re_types_builder::CodeGenerator

source ·
pub trait CodeGenerator {
    // Required method
    fn generate(
        &mut self,
        reporter: &Reporter,
        objects: &Objects,
        arrow_registry: &ArrowRegistry,
    ) -> GeneratedFiles;
}
Expand description

Implements the codegen pass.

Required Methods§

source

fn generate( &mut self, reporter: &Reporter, objects: &Objects, arrow_registry: &ArrowRegistry, ) -> GeneratedFiles

Generates user-facing code from crate::Objects.

Returns the expected paths and contents of all generated files. It is the responsibility of the caller to actually do something with that data (e.g. write them to disk).

Implementors§