Enum cton_wasm::GlobalValue [] [src]

pub enum GlobalValue {
    Const(Value),
    Memory {
        gv: GlobalVar,
        ty: Type,
    },
}

The value of a WebAssembly global variable.

Variants

This is a constant global with a value known at compile time.

This is a variable in memory that should be referenced as a GlobalVar.

Fields of Memory

Which global variable should be referenced.

The global variable's type.

Trait Implementations

impl Clone for GlobalValue
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for GlobalValue
[src]

Auto Trait Implementations

impl Send for GlobalValue

impl Sync for GlobalValue