[][src]Enum wasmer::GlobalInit

pub enum GlobalInit {
    I32Const(i32),
    I64Const(i64),
    F32Const(f32),
    F64Const(f64),
    V128Const(V128),
    GetGlobal(GlobalIndex),
    RefNullConst,
    RefFunc(FunctionIndex),
}

Globals are initialized via the const operators or by referring to another import.

Variants

I32Const(i32)

An i32.const.

I64Const(i64)

An i64.const.

F32Const(f32)

An f32.const.

F64Const(f64)

An f64.const.

V128Const(V128)

A v128.const.

GetGlobal(GlobalIndex)

A global.get of another global.

RefNullConst

A ref.null.

RefFunc(FunctionIndex)

A ref.func <index>.

Implementations

impl GlobalInit[src]

pub fn from_value<T>(value: Value<T>) -> GlobalInit[src]

Get the GlobalInit from a given Value

pub fn to_value<T>(&self) -> Value<T>[src]

Get the Value from the Global init value

Trait Implementations

impl Clone for GlobalInit[src]

impl Copy for GlobalInit[src]

impl Debug for GlobalInit[src]

impl<'de> Deserialize<'de> for GlobalInit[src]

impl Serialize for GlobalInit[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,