Struct wast::TypeUse [−][src]
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]
fn from(
src: TypeUse<'a, FunctionTypeNoNames<'a>>
) -> TypeUse<'a, FunctionType<'a>>
[src]
src: TypeUse<'a, FunctionTypeNoNames<'a>>
) -> TypeUse<'a, FunctionType<'a>>
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,
T: RefUnwindSafe,
impl<'a, T> Send for TypeUse<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for TypeUse<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for TypeUse<'a, T> where
T: Unpin,
T: Unpin,
impl<'a, T> UnwindSafe for TypeUse<'a, T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,