pub struct Global {
pub ty: ValType,
pub mutable: bool,
pub shared: bool,
pub kind: GlobalKind,
pub name: Option<String>,
/* private fields */
}
Expand description
A wasm global.
Fields§
§ty: ValType
This global’s type.
mutable: bool
Whether this global is mutable or not.
Whether this global is shared or not.
kind: GlobalKind
The kind of global this is
name: Option<String>
The name of this data, used for debugging purposes in the name
custom section.
Implementations§
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