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

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

A wrapper around the [TypedIndex]es for Wasm functions, Wasm memories, Wasm globals, and Wasm tables.

Used in [ModuleInfo] to access function signatures ([SigIndex]s, [FuncSig]), [GlobalInit]s, [MemoryDescriptor]s, and [TableDescriptor]s.

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

impl RefUnwindSafe for ExportIndex

impl Send for ExportIndex

impl Sync for ExportIndex

impl Unpin for ExportIndex

impl UnwindSafe for ExportIndex

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: 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[src]

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.