Enum wast::component::ComponentValType
source · pub enum ComponentValType<'a> {
Inline(ComponentDefinedType<'a>),
Ref(Index<'a>),
}
Expand description
A component value type.
Variants§
Inline(ComponentDefinedType<'a>)
The value type is an inline defined type.
Ref(Index<'a>)
The value type is an index reference to a defined type.
Trait Implementations§
source§impl<'a> Debug for ComponentValType<'a>
impl<'a> Debug for ComponentValType<'a>
source§impl From<&ComponentValType<'_>> for ComponentValType
impl From<&ComponentValType<'_>> for ComponentValType
source§fn from(r: &ComponentValType<'_>) -> Self
fn from(r: &ComponentValType<'_>) -> Self
Converts to this type from the input type.
source§impl<'a> Parse<'a> for ComponentValType<'a>
impl<'a> Parse<'a> for ComponentValType<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComponentValType<'a>
impl<'a> RefUnwindSafe for ComponentValType<'a>
impl<'a> Send for ComponentValType<'a>
impl<'a> Sync for ComponentValType<'a>
impl<'a> Unpin for ComponentValType<'a>
impl<'a> UnwindSafe for ComponentValType<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more