Enum wasmtime_types::GlobalInit [−][src]
pub enum GlobalInit {
I32Const(i32),
I64Const(i64),
F32Const(u32),
F64Const(u64),
V128Const(u128),
GetGlobal(GlobalIndex),
RefNullConst,
RefFunc(FuncIndex),
Import,
}Expand description
Globals are initialized via the const operators or by referring to another import.
Variants
I32Const(i32)An i32.const.
Tuple Fields of I32Const
0: i32I64Const(i64)An i64.const.
Tuple Fields of I64Const
0: i64F32Const(u32)An f32.const.
Tuple Fields of F32Const
0: u32F64Const(u64)An f64.const.
Tuple Fields of F64Const
0: u64V128Const(u128)A vconst.
Tuple Fields of V128Const
0: u128GetGlobal(GlobalIndex)A global.get of another global.
Tuple Fields of GetGlobal
0: GlobalIndexA ref.null.
RefFunc(FuncIndex)A ref.func <index>.
Tuple Fields of RefFunc
0: FuncIndex< The global is imported from, and thus initialized by, a different module.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for GlobalInit
impl Send for GlobalInit
impl Sync for GlobalInit
impl Unpin for GlobalInit
impl UnwindSafe for GlobalInit
Blanket Implementations
Mutably borrows from an owned value. Read more