Struct gear_wasm::elements::Instructions
source · pub struct Instructions(/* private fields */);
Expand description
List of instructions (usually inside a block section).
Implementations§
source§impl 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§
source§impl Clone for Instructions
impl Clone for Instructions
source§fn clone(&self) -> Instructions
fn clone(&self) -> Instructions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Instructions
impl Debug for Instructions
source§impl Deserialize for Instructions
impl Deserialize for Instructions
source§impl PartialEq for Instructions
impl PartialEq for Instructions
source§fn eq(&self, other: &Instructions) -> bool
fn eq(&self, other: &Instructions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more