Skip to main content

Codegen

Trait Codegen 

Source
pub trait Codegen {
    // Required method
    fn generate(
        &self,
        ast: Vec<Statement>,
        context: &mut Context,
    ) -> Result<String, String>;
}

Required Methods§

Source

fn generate( &self, ast: Vec<Statement>, context: &mut Context, ) -> Result<String, String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§