Struct parity_wasm::elements::Opcodes
[−]
[src]
pub struct Opcodes(_);
Collection of opcodes (usually inside a block section).
Methods
impl Opcodes
[src]
fn new(elements: Vec<Opcode>) -> Self
[src]
New list of opcodes from vector of opcodes.
fn empty() -> Self
[src]
Empty expression with only Opcode::End
opcode.
fn elements(&self) -> &[Opcode]
[src]
List of individual opcodes.
fn elements_mut(&mut self) -> &mut Vec<Opcode>
[src]
Individual opcodes, mutable.
Trait Implementations
impl Debug for Opcodes
[src]
impl PartialEq for Opcodes
[src]
fn eq(&self, __arg_0: &Opcodes) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Opcodes) -> bool
[src]
This method tests for !=
.
impl Clone for Opcodes
[src]
fn clone(&self) -> Opcodes
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deserialize for Opcodes
[src]
type Error = Error
Serialization error produced by deserialization routine.
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, Self::Error>
[src]
Deserialize type from serial i/o