pub struct Global { /* private fields */ }
Expand description
A global variable accesible as an import or export in a module.
This type wraps a WebAssembly.Global
from the JavaScript API.
Trait Implementations§
Source§impl WasmGlobal<Engine> for Global
impl WasmGlobal<Engine> for Global
Source§fn new(
_ctx: impl AsContextMut<Engine>,
value: Value<Engine>,
mutable: bool,
) -> Self
fn new( _ctx: impl AsContextMut<Engine>, value: Value<Engine>, mutable: bool, ) -> Self
Creates a new global variable to the store.
Source§fn ty(&self, _ctx: impl AsContext<Engine>) -> GlobalType
fn ty(&self, _ctx: impl AsContext<Engine>) -> GlobalType
Returns the type of the global variable.
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