Struct parity_wasm::elements::GlobalEntry
source · pub struct GlobalEntry { /* private fields */ }
Expand description
Global entry in the module.
Implementations§
source§impl GlobalEntry
impl GlobalEntry
sourcepub fn new(global_type: GlobalType, init_expr: InitExpr) -> Self
pub fn new(global_type: GlobalType, init_expr: InitExpr) -> Self
New global entry.
sourcepub fn global_type(&self) -> &GlobalType
pub fn global_type(&self) -> &GlobalType
Global type.
sourcepub fn global_type_mut(&mut self) -> &mut GlobalType
pub fn global_type_mut(&mut self) -> &mut GlobalType
Global type (mutable).
sourcepub fn init_expr_mut(&mut self) -> &mut InitExpr
pub fn init_expr_mut(&mut self) -> &mut InitExpr
Initialization expression (instructions) for global (mutable).
Trait Implementations§
source§impl Clone for GlobalEntry
impl Clone for GlobalEntry
source§fn clone(&self) -> GlobalEntry
fn clone(&self) -> GlobalEntry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more