Struct wasmtime::GlobalType [−][src]
pub struct GlobalType { /* fields omitted */ }A WebAssembly global descriptor.
This type describes an instance of a global in a WebAssembly module. Globals
are local to an Instance and are either immutable or
mutable.
Implementations
impl GlobalType[src]
impl GlobalType[src]pub fn new(content: ValType, mutability: Mutability) -> GlobalType[src]
Creates a new global descriptor of the specified content type and
whether or not it’s mutable.
pub fn content(&self) -> &ValType[src]
Returns the value type of this global descriptor.
pub fn mutability(&self) -> Mutability[src]
Returns whether or not this global is mutable.
Trait Implementations
impl Clone for GlobalType[src]
impl Clone for GlobalType[src]fn clone(&self) -> GlobalType[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl From<GlobalType> for ExternType[src]
impl From<GlobalType> for ExternType[src]fn from(ty: GlobalType) -> ExternType[src]
impl Hash for GlobalType[src]
impl Hash for GlobalType[src]impl PartialEq<GlobalType> for GlobalType[src]
impl PartialEq<GlobalType> for GlobalType[src]