Struct parity_wasm::elements::InitExpr
source · pub struct InitExpr(_);
Expand description
Initialization expression.
Implementations§
source§impl InitExpr
impl InitExpr
sourcepub fn new(code: Vec<Instruction>) -> Self
pub fn new(code: Vec<Instruction>) -> Self
New initialization expression from instruction list.
code
must end with the Instruction::End
instruction!
sourcepub fn code(&self) -> &[Instruction]
pub fn code(&self) -> &[Instruction]
List of instructions used in the expression.
sourcepub fn code_mut(&mut self) -> &mut Vec<Instruction>
pub fn code_mut(&mut self) -> &mut Vec<Instruction>
List of instructions used in the expression.