pub struct WasmGlobal {
pub name: String,
pub ty: WasmType,
pub mutable: bool,
pub init_value: String,
}Expand description
A WebAssembly global variable declaration.
Fields§
§name: StringIdentifier name of the global.
ty: WasmTypeValue type of the global.
mutable: boolWhether the global is mutable.
init_value: StringInitial value expression (as a WAT constant expression string).
Trait Implementations§
Source§impl Clone for WasmGlobal
impl Clone for WasmGlobal
Source§fn clone(&self) -> WasmGlobal
fn clone(&self) -> WasmGlobal
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WasmGlobal
impl Debug for WasmGlobal
Source§impl Display for WasmGlobal
impl Display for WasmGlobal
Source§impl PartialEq for WasmGlobal
impl PartialEq for WasmGlobal
impl StructuralPartialEq for WasmGlobal
Auto Trait Implementations§
impl Freeze for WasmGlobal
impl RefUnwindSafe for WasmGlobal
impl Send for WasmGlobal
impl Sync for WasmGlobal
impl Unpin for WasmGlobal
impl UnsafeUnpin for WasmGlobal
impl UnwindSafe for WasmGlobal
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