[][src]Struct wit_parser::Import

pub struct Import<'a> {
    pub module: &'a str,
    pub name: &'a str,
    pub ty: u32,
}

An element of the Imports subsection which lists where the import comes from as well as the type signature of the function.

Currently imports are always functions.

Fields

module: &'a str

The wasm module name where this import comes from.

name: &'a str

The name of the field from the wasm module that this import comes from.

ty: u32

The type signature of the function that this import represents.

Auto Trait Implementations

impl<'a> Send for Import<'a>

impl<'a> Sync for Import<'a>

impl<'a> Unpin for Import<'a>

impl<'a> UnwindSafe for Import<'a>

impl<'a> RefUnwindSafe for Import<'a>

Blanket Implementations

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 = !

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

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

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