Trait orca_wasm::module_builder::AddLocal

source ·
pub trait AddLocal {
    // Required method
    fn add_local(&mut self, ty: DataType) -> LocalID;
}

Required Methods§

source

fn add_local(&mut self, ty: DataType) -> LocalID

Adds a local and in the current function and returns its ID note: the implementors of this trait will keep track of the location, i.e. which function, where this local is added

Implementors§