Struct parity_wasm::elements::Instructions
source · pub struct Instructions(_);
Expand description
List of instructions (usually inside a block section).
Implementations
sourceimpl Instructions
impl Instructions
sourcepub fn new(elements: Vec<Instruction>) -> Self
pub fn new(elements: Vec<Instruction>) -> Self
New list of instructions from vector of instructions.
sourcepub fn elements(&self) -> &[Instruction]
pub fn elements(&self) -> &[Instruction]
List of individual instructions.
sourcepub fn elements_mut(&mut self) -> &mut Vec<Instruction>
pub fn elements_mut(&mut self) -> &mut Vec<Instruction>
Individual instructions, mutable.
Trait Implementations
sourceimpl Clone for Instructions
impl Clone for Instructions
sourcefn clone(&self) -> Instructions
fn clone(&self) -> Instructions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Instructions
impl Debug for Instructions
sourceimpl Deserialize for Instructions
impl Deserialize for Instructions
sourceimpl PartialEq<Instructions> for Instructions
impl PartialEq<Instructions> for Instructions
sourcefn eq(&self, other: &Instructions) -> bool
fn eq(&self, other: &Instructions) -> bool
sourceimpl Serialize for Instructions
impl Serialize for Instructions
impl StructuralPartialEq for Instructions
Auto Trait Implementations
impl RefUnwindSafe for Instructions
impl Send for Instructions
impl Sync for Instructions
impl Unpin for Instructions
impl UnwindSafe for Instructions
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