[][src]Enum wasm_interface::interface::Import

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

Variants

Func

Fields of Func

namespace: Stringname: Stringparams: Vec<WasmType>result: Vec<WasmType>
Global

Fields of Global

namespace: Stringname: Stringvar_type: WasmType

Methods

impl Import[src]

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

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

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

Trait Implementations

impl PartialEq<Import> for Import[src]

impl Eq for Import[src]

impl Clone for Import[src]

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

Performs copy-assignment from source. Read more

impl Debug for Import[src]

Auto Trait Implementations

impl Send for Import

impl Unpin for Import

impl Sync for Import

impl UnwindSafe for Import

impl RefUnwindSafe for Import

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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]