Enum wasmtime_environ::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)
This is a constant global with a value known at compile time.
This is a variable in memory that should be referenced through a GlobalValue
.
Show fields
Fields of Memory
gv: GlobalValue
The address of the global variable storage.
offset: Offset32
An offset to add to the address.
ty: Type
The global variable’s type.
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