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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Instructions) -> bool
fn ne(&self, other: &Instructions) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
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.
sourcefn clone_into(&self, target: &mut T)
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