[][src]Struct wit_text::Import

pub struct Import<'a> {
    pub span: Span,
    pub id: Option<Id<'a>>,
    pub module: &'a str,
    pub name: &'a str,
    pub ty: TypeUse<'a>,
}

An imported function declaration using wasm interface types.

Fields

span: Span

Where this import was defined.

id: Option<Id<'a>>

The name of this import to refer to

module: &'a str

Where this was imported from

name: &'a str

What is being imported

ty: TypeUse<'a>

The type signature of the function being imported.

Trait Implementations

impl<'a> Parse<'a> for Import<'a>[src]

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]