pub struct Global(/* private fields */);Expand description
A Wasm global.
Implementations§
Source§impl Global
impl Global
Sourcepub fn new(
store: &mut Store,
type_: GlobalType,
val: Val,
) -> Result<Self, GlobalError>
pub fn new( store: &mut Store, type_: GlobalType, val: Val, ) -> Result<Self, GlobalError>
Sourcepub fn type_(self, store: &Store) -> GlobalType
pub fn type_(self, store: &Store) -> GlobalType
Returns the GlobalType of this Global.
Trait Implementations§
impl Copy for Global
impl Eq for Global
impl StructuralPartialEq for Global
Auto Trait Implementations§
impl Freeze for Global
impl !RefUnwindSafe for Global
impl !Send for Global
impl !Sync for Global
impl Unpin for Global
impl !UnwindSafe for Global
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