Struct wasmtime_environ::wasm::Global  [−][src]
pub struct Global {
    pub wasm_ty: WasmType,
    pub ty: Type,
    pub mutability: bool,
    pub initializer: GlobalInit,
}A WebAssembly global.
Note that we record both the original Wasm type and the Cranelift IR type
used to represent it. This is because multiple different kinds of Wasm types
might be represented with the same Cranelift IR type. For example, both a
Wasm i64 and a funcref might be represented with a Cranelift i64 on
64-bit architectures, and when GC is not required for func refs.
Fields
wasm_ty: WasmTypeThe Wasm type of the value stored in the global.
ty: TypeThe Cranelift IR type of the value stored in the global.
mutability: boolA flag indicating whether the value may change at runtime.
initializer: GlobalInitThe source of the initial value.
Trait Implementations
impl<'de> Deserialize<'de> for Global[src]
impl<'de> Deserialize<'de> for Global[src]pub fn deserialize<__D>(
    __deserializer: __D
) -> Result<Global, <__D as Deserializer<'de>>::Error> where
    __D: Deserializer<'de>, [src]
__deserializer: __D
) -> Result<Global, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for Global[src]
impl Serialize for Global[src]pub fn serialize<__S>(
    &self, 
    __serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
    __S: Serializer, [src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Copy for Global[src]
impl Eq for Global[src]
impl StructuralEq for Global[src]
impl StructuralPartialEq for Global[src]
Auto Trait Implementations
impl RefUnwindSafe for Global
impl Send for Global
impl Sync for Global
impl Unpin for Global
impl UnwindSafe for Global
Blanket Implementations
impl<T> CallHasher for T where
    T: Hash, [src]
impl<T> CallHasher for T where
    T: Hash, [src]impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,