[][src]Enum wasmer_runtime_core::module::ExportIndex

pub enum ExportIndex {
    Func(FuncIndex),
    Memory(MemoryIndex),
    Global(GlobalIndex),
    Table(TableIndex),
}

A wrapper around the TypedIndexes for Wasm functions, Wasm memories, Wasm globals, and Wasm tables.

Used in ModuleInfo to access function signatures (SigIndexs, FuncSig), GlobalInits, MemoryDescriptors, and TableDescriptors.

Variants

Func(FuncIndex)

Function export index. FuncIndex is a type-safe handle referring to a Wasm function.

Memory(MemoryIndex)

Memory export index. MemoryIndex is a type-safe handle referring to a Wasm memory.

Global(GlobalIndex)

Global export index. GlobalIndex is a type-safe handle referring to a Wasm global.

Table(TableIndex)

Table export index. TableIndex is a type-safe handle referring to to a Wasm table.

Trait Implementations

impl Clone for ExportIndex[src]

impl Copy for ExportIndex[src]

impl Debug for ExportIndex[src]

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

impl Eq for ExportIndex[src]

impl PartialEq<ExportIndex> for ExportIndex[src]

impl Serialize for ExportIndex[src]

impl StructuralEq for ExportIndex[src]

impl StructuralPartialEq for ExportIndex[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.