Trait Compiler

Source
pub trait Compiler {
    // Required method
    fn compile(
        &self,
        pslab: &ParseSlab,
        cslab: &mut CompileSlab,
        ns: &mut impl EvalNamespace,
    ) -> Instruction;
}
Expand description

You must use the Compiler trait before you can call .compile() on parsed Expressions.

Required Methods§

Source

fn compile( &self, pslab: &ParseSlab, cslab: &mut CompileSlab, ns: &mut impl EvalNamespace, ) -> Instruction

Turns a parsed Expression into a compiled Instruction.

Cannot fail, unless you run out of memory.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§