Struct parity_wasm::elements::GlobalEntry
source · pub struct GlobalEntry { /* private fields */ }
Expand description
Global entry in the module.
Implementations
sourceimpl 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
sourceimpl Clone for GlobalEntry
impl Clone for GlobalEntry
sourcefn clone(&self) -> GlobalEntry
fn clone(&self) -> GlobalEntry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GlobalEntry
impl Debug for GlobalEntry
sourceimpl Deserialize for GlobalEntry
impl Deserialize for GlobalEntry
sourceimpl PartialEq<GlobalEntry> for GlobalEntry
impl PartialEq<GlobalEntry> for GlobalEntry
sourcefn eq(&self, other: &GlobalEntry) -> bool
fn eq(&self, other: &GlobalEntry) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more