Struct GlobalType
pub struct GlobalType { /* private fields */ }Expand description
Struct of WasmEdge GlobalType.
A GlobalType is used to declare the type of a WasmEdge Global to be created.
Implementations§
§impl GlobalType
impl GlobalType
pub fn new(ty: ValType, mutability: Mutability) -> GlobalType
pub fn new(ty: ValType, mutability: Mutability) -> GlobalType
Creates a new GlobalType with the given value type and mutability.
§Arguments
-
ty- The value type of the global to be created. -
mutability- The value mutability property of the global to be created.
pub fn value_ty(&self) -> ValType
pub fn value_ty(&self) -> ValType
Returns the value type defined in the GlobalType.
pub fn mutability(&self) -> Mutability
pub fn mutability(&self) -> Mutability
Returns the value mutability property defined in the GlobalType.
Trait Implementations§
§impl Clone for GlobalType
impl Clone for GlobalType
§fn clone(&self) -> GlobalType
fn clone(&self) -> GlobalType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for GlobalType
impl Debug for GlobalType
§impl Default for GlobalType
impl Default for GlobalType
§fn default() -> GlobalType
fn default() -> GlobalType
Returns the “default value” for a type. Read more
impl Eq for GlobalType
§impl PartialEq for GlobalType
impl PartialEq for GlobalType
impl StructuralPartialEq for GlobalType
Auto Trait Implementations§
impl Freeze for GlobalType
impl RefUnwindSafe for GlobalType
impl Send for GlobalType
impl Sync for GlobalType
impl Unpin for GlobalType
impl UnsafeUnpin for GlobalType
impl UnwindSafe for GlobalType
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