[][src]Struct substrate_wasmtime::Export

pub struct Export<'instance> { /* fields omitted */ }

An exported WebAssembly value.

This type is primarily accessed from the Instance::exports accessor and describes what names and items are exported from a wasm instance.

Implementations

impl<'instance> Export<'instance>[src]

pub fn name(&self) -> &'instance str[src]

Returns the name by which this export is known.

pub fn ty(&self) -> ExternType[src]

Return the ExternType of this export.

pub fn into_extern(self) -> Extern[src]

Consume this Export and return the contained Extern.

pub fn into_func(self) -> Option<Func>[src]

Consume this Export and return the contained Func, if it's a function, or None otherwise.

pub fn into_table(self) -> Option<Table>[src]

Consume this Export and return the contained Table, if it's a table, or None otherwise.

pub fn into_memory(self) -> Option<Memory>[src]

Consume this Export and return the contained Memory, if it's a memory, or None otherwise.

pub fn into_global(self) -> Option<Global>[src]

Consume this Export and return the contained Global, if it's a global, or None otherwise.

Trait Implementations

impl<'instance> Clone for Export<'instance>[src]

Auto Trait Implementations

impl<'instance> !RefUnwindSafe for Export<'instance>

impl<'instance> !Send for Export<'instance>

impl<'instance> !Sync for Export<'instance>

impl<'instance> Unpin for Export<'instance>

impl<'instance> !UnwindSafe for Export<'instance>

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> 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.