Enum cranelift_wasm::GlobalVariable [−][src]
pub enum GlobalVariable {
Const(Value),
Memory {
gv: GlobalValue,
offset: Offset32,
ty: Type,
},
Custom,
}Expand description
The value of a WebAssembly global variable.
Variants
Const(Value)
Tuple Fields
0: ValueThis is a constant global with a value known at compile time.
Memory
Fields
gv: GlobalValueThe address of the global variable storage.
offset: Offset32An offset to add to the address.
ty: TypeThe global variable’s type.
This is a variable in memory that should be referenced through a GlobalValue.
Custom
This is a global variable that needs to be handled by the environment.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GlobalVariable
impl Send for GlobalVariable
impl Sync for GlobalVariable
impl Unpin for GlobalVariable
impl UnwindSafe for GlobalVariable
Blanket Implementations
Mutably borrows from an owned value. Read more
