Struct parity_wasm::elements::InitExpr
source · pub struct InitExpr(_);
Expand description
Initialization expression.
Implementations
sourceimpl 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.
Trait Implementations
sourceimpl Deserialize for InitExpr
impl Deserialize for InitExpr
impl StructuralPartialEq for InitExpr
Auto Trait Implementations
impl RefUnwindSafe for InitExpr
impl Send for InitExpr
impl Sync for InitExpr
impl Unpin for InitExpr
impl UnwindSafe for InitExpr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more