Enum cretonne_wasm::GlobalValue
[−]
[src]
pub enum GlobalValue { Const(Value), Memory { gv: GlobalVar, ty: Type, }, }
The value of a WebAssembly global variable.
Variants
Const(Value)
This is a constant global with a value known at compile time.
Memory
This is a variable in memory that should be referenced as a GlobalVar
.
Fields of Memory
gv: GlobalVar | Which global variable should be referenced. |
ty: Type | The global variable's type. |
Trait Implementations
impl Clone for GlobalValue
[src]
fn clone(&self) -> GlobalValue
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more