[][src]Struct wit_text::Type

pub struct Type<'a> {
    pub name: Option<Id<'a>>,
    pub params: Vec<(Option<Id<'a>>, ValType)>,
    pub results: Vec<ValType>,
}

A type declaration in a wasm interface type subsection

Fields

name: Option<Id<'a>>

The optional name of this type, used to refer to it from elsewhere.

params: Vec<(Option<Id<'a>>, ValType)>

Explicitly listed parameters with optional names, if any.

results: Vec<ValType>

The results of this function signature.

Trait Implementations

impl<'a> Clone for Type<'a>[src]

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

Auto Trait Implementations

impl<'a> Send for Type<'a>

impl<'a> Sync for Type<'a>

impl<'a> Unpin for Type<'a>

impl<'a> UnwindSafe for Type<'a>

impl<'a> RefUnwindSafe for Type<'a>

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

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]