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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GlobalEntry) -> bool
fn ne(&self, other: &GlobalEntry) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more