Struct parity_wasm::elements::InitExpr
[−]
[src]
pub struct InitExpr(_);
Initialization expression.
Methods
impl InitExpr
[src]
fn new(code: Vec<Opcode>) -> Self
New initialization expression from list of opcodes.
code
must end with the Opcode::End
opcode!
fn empty() -> Self
Empty expression with only Opcode::End
opcode
fn code(&self) -> &[Opcode]
List of opcodes used in the expression.
fn code_mut(&mut self) -> &mut Vec<Opcode>
List of opcodes used in the expression.
Trait Implementations
impl Debug for InitExpr
[src]
impl Deserialize for InitExpr
[src]
type Error = Error
Serialization error produced by deserialization routine.
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, Self::Error>
Deserialize type from serial i/o