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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more