pub struct Global { /* private fields */ }Expand description
A handle to a Wasm Global
Implementations§
Source§impl Global
impl Global
Sourcepub fn new(value: Value) -> Global
pub fn new(value: Value) -> Global
Create a new Global value.
Usage:
let global = Global::new(Value::I32(42));Sourcepub fn new_mutable(value: Value) -> Global
pub fn new_mutable(value: Value) -> Global
Create a new, mutable Global value.
Usage:
let global = Global::new_mutable(Value::I32(42));Sourcepub fn descriptor(&self) -> GlobalDescriptor
pub fn descriptor(&self) -> GlobalDescriptor
Get the GlobalDescriptor generated for this global.
Trait Implementations§
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