[][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


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>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> BorrowMut<T> for T where
    T: ?Sized

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