Struct parity_wasm::elements::Instructions
source · pub struct Instructions(_);
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 more