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: ValTypeThis global’s type.
mutable: boolWhether this global is mutable or not.
Whether this global is shared or not.
kind: GlobalKindThe 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