[][src]Enum wasm_interface::interface::Export

pub enum Export {
    Func {
        name: String,
        params: Vec<WasmType>,
        result: Vec<WasmType>,
    },
    Global {
        name: String,
        var_type: WasmType,
    },
}

Variants

Func

Fields of Func

name: Stringparams: Vec<WasmType>result: Vec<WasmType>
Global

Fields of Global

name: Stringvar_type: WasmType

Methods

impl Export[src]

pub fn format_key(name: &str) -> String[src]

pub fn get_key(&self) -> String[src]

Get the key used to look this export up in the Interface's export hashmap

Trait Implementations

impl PartialEq<Export> for Export[src]

impl Clone for Export[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for Export[src]

impl Debug for Export[src]

Auto Trait Implementations

impl Send for Export

impl Unpin for Export

impl Sync for Export

impl UnwindSafe for Export

impl RefUnwindSafe for Export

Blanket Implementations

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]