[][src]Struct wast::TypeUse

pub struct TypeUse<'a, T> {
    pub index: Option<ItemRef<'a, type>>,
    pub inline: Option<T>,
}

A reference to a type defined in this module.

Fields

index: Option<ItemRef<'a, type>>

The type that we're referencing, if it was present.

inline: Option<T>

The inline type, if present.

Implementations

impl<'a, T> TypeUse<'a, T>[src]

pub fn new_with_index(idx: Index<'a>) -> TypeUse<'a, T>[src]

Constructs a new instance of TypeUse without an inline definition but with an index specified.

Trait Implementations

impl<'a, T: Clone> Clone for TypeUse<'a, T>[src]

impl<'a, T: Debug> Debug for TypeUse<'a, T>[src]

impl<'a> From<TypeUse<'a, FunctionTypeNoNames<'a>>> for TypeUse<'a, FunctionType<'a>>[src]

impl<'a, T: Peek + Parse<'a>> Parse<'a> for TypeUse<'a, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for TypeUse<'a, T> where
    T: RefUnwindSafe
[src]

impl<'a, T> Send for TypeUse<'a, T> where
    T: Send
[src]

impl<'a, T> Sync for TypeUse<'a, T> where
    T: Sync
[src]

impl<'a, T> Unpin for TypeUse<'a, T> where
    T: Unpin
[src]

impl<'a, T> UnwindSafe for TypeUse<'a, T> where
    T: UnwindSafe
[src]

Blanket Implementations

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

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

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

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