[][src]Struct wasmer::ExportType

pub struct ExportType<T = ExternType> { /* fields omitted */ }

A descriptor for an exported WebAssembly value.

This type is primarily accessed from the Module::exports accessor and describes what names are exported from a wasm module and the type of the item that is exported.

The <T> refefers to ExternType, however it can also refer to use MemoryType, TableType, FunctionType and GlobalType for ease of use.

Implementations

impl<T> ExportType<T>[src]

pub fn new(name: &str, ty: T) -> ExportType<T>[src]

Creates a new export which is exported with the given name and has the given ty.

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

Returns the name by which this export is known by.

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

Returns the type of this export.

Trait Implementations

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

impl<T> Debug for ExportType<T> where
    T: Debug
[src]

impl<'de, T> Deserialize<'de> for ExportType<T> where
    T: Deserialize<'de>, 
[src]

impl<T> Eq for ExportType<T> where
    T: Eq
[src]

impl<T> Hash for ExportType<T> where
    T: Hash
[src]

impl<T> PartialEq<ExportType<T>> for ExportType<T> where
    T: PartialEq<T>, 
[src]

impl<T> Serialize for ExportType<T> where
    T: Serialize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for ExportType<T> where
    T: RefUnwindSafe

impl<T> Send for ExportType<T> where
    T: Send

impl<T> Sync for ExportType<T> where
    T: Sync

impl<T> Unpin for ExportType<T> where
    T: Unpin

impl<T> UnwindSafe for ExportType<T> where
    T: UnwindSafe

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