Trait precis_tools::CodeGen

source ·
pub trait CodeGen {
    // Required method
    fn generate_code(&mut self, file: &mut File) -> Result<(), Error>;
}
Expand description

Trait implemented by all elements which are able to generate code.

Required Methods§

source

fn generate_code(&mut self, file: &mut File) -> Result<(), Error>

Writes the Rust code itself.

§Arguments:
  • file - The output file

Implementors§