Struct parity_wasm::elements::InitExpr [−][src]
pub struct InitExpr(_);
Initialization expression.
Implementations
impl InitExpr[src]
impl InitExpr[src]pub fn new(code: Vec<Instruction>) -> Self[src]
New initialization expression from instruction list.
code must end with the Instruction::End instruction!
pub fn empty() -> Self[src]
Empty expression with only Instruction::End instruction.
pub fn code(&self) -> &[Instruction][src]
List of instructions used in the expression.
pub fn code_mut(&mut self) -> &mut Vec<Instruction>[src]
List of instructions used in the expression.
Trait Implementations
impl Deserialize for InitExpr[src]
impl Deserialize for InitExpr[src]