Struct gear_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 moresource§impl Debug for GlobalEntry
impl Debug for GlobalEntry
source§impl Deserialize for GlobalEntry
impl Deserialize for GlobalEntry
source§impl PartialEq for GlobalEntry
impl PartialEq for GlobalEntry
source§fn eq(&self, other: &GlobalEntry) -> bool
fn eq(&self, other: &GlobalEntry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GlobalEntry
impl Serialize for GlobalEntry
impl StructuralPartialEq for GlobalEntry
Auto Trait Implementations§
impl RefUnwindSafe for GlobalEntry
impl Send for GlobalEntry
impl Sync for GlobalEntry
impl Unpin for GlobalEntry
impl UnwindSafe for GlobalEntry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more