Skip to main content

CompilerStage

Trait CompilerStage 

Source
pub trait CompilerStage: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn run(&self, model: &mut ModelProto) -> Result<(), PassError>;
}
Expand description

User-supplied compiler stage.

Required Methods§

Source

fn name(&self) -> &'static str

Unique stage identifier within a Compiler.

Source

fn run(&self, model: &mut ModelProto) -> Result<(), PassError>

Mutate the emitted partition model.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§