Struct parity_wasm::elements::InitExpr
[−]
[src]
pub struct InitExpr(_);
Initialization expression.
Methods
impl InitExpr
[src]
pub fn new(code: Vec<Opcode>) -> Self
[src]
New initialization expression from list of opcodes.
code
must end with the Opcode::End
opcode!
pub fn empty() -> Self
[src]
Empty expression with only Opcode::End
opcode
pub fn code(&self) -> &[Opcode]
[src]
List of opcodes used in the expression.
pub fn code_mut(&mut self) -> &mut Vec<Opcode>
[src]
List of opcodes used in the expression.
Trait Implementations
impl Debug for InitExpr
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for InitExpr
[src]
fn clone(&self) -> InitExpr
[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 InitExpr
[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