Enum cretonne_wasm::GlobalVariable [−][src]
pub enum GlobalVariable { Const(Value), Memory { gv: GlobalValue, 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 through a GlobalValue
.
Fields of Memory
gv: GlobalValue | The address of the global variable storage. |
ty: Type | The global variable's type. |
Trait Implementations
impl Clone for GlobalVariable
[src]
impl Clone for GlobalVariable
fn clone(&self) -> GlobalVariable
[src]
fn clone(&self) -> GlobalVariable
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for GlobalVariable
[src]
impl Copy for GlobalVariable
Auto Trait Implementations
impl Send for GlobalVariable
impl Send for GlobalVariable
impl Sync for GlobalVariable
impl Sync for GlobalVariable