Struct parity_wasm::elements::GlobalEntry
[−]
[src]
pub struct GlobalEntry { /* fields omitted */ }
Global entry in the module.
Methods
impl GlobalEntry
[src]
fn new(global_type: GlobalType, init_expr: InitExpr) -> Self
[src]
New global entry
fn global_type(&self) -> &GlobalType
[src]
Global type.
fn init_expr(&self) -> &InitExpr
[src]
Initialization expression (opcodes) for global.
fn global_type_mut(&mut self) -> &mut GlobalType
[src]
Global type (mutable)
fn init_expr_mut(&mut self) -> &mut InitExpr
[src]
Initialization expression (opcodes) for global (mutable)
Trait Implementations
impl Clone for GlobalEntry
[src]
fn clone(&self) -> GlobalEntry
[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 Debug for GlobalEntry
[src]
impl Deserialize for GlobalEntry
[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