Struct parity_wasm::elements::GlobalEntry
[−]
[src]
pub struct GlobalEntry { /* fields omitted */ }Global entry in the module.
Methods
impl GlobalEntry[src]
pub fn new(global_type: GlobalType, init_expr: InitExpr) -> Self[src]
New global entry
pub fn global_type(&self) -> &GlobalType[src]
Global type.
pub fn init_expr(&self) -> &InitExpr[src]
Initialization expression (opcodes) for global.
pub fn global_type_mut(&mut self) -> &mut GlobalType[src]
Global type (mutable)
pub 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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
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