[][src]Enum cranelift_wasm::GlobalVariable

pub enum GlobalVariable {
    Const(Value),
    Memory {
        gv: GlobalValue,
        offset: Offset32,
        ty: Type,
    },
    Custom,
}

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.

offset: Offset32

An offset to add to the address.

ty: Type

The global variable's type.

Custom

This is a global variable that needs to be handled by the environment.

Trait Implementations

impl Clone for GlobalVariable[src]

impl Copy for GlobalVariable[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.