pub enum ComponentDefinedType<'a> {
Primitive(PrimitiveValType),
Record(Record<'a>),
Variant(Variant<'a>),
List(List<'a>),
Tuple(Tuple<'a>),
Flags(Flags<'a>),
Enum(Enum<'a>),
Option(OptionType<'a>),
Result(ResultType<'a>),
Own(Index<'a>),
Borrow(Index<'a>),
}
Available on crate feature
component-model
only.Variants§
Primitive(PrimitiveValType)
Record(Record<'a>)
Variant(Variant<'a>)
List(List<'a>)
Tuple(Tuple<'a>)
Flags(Flags<'a>)
Enum(Enum<'a>)
Option(OptionType<'a>)
Result(ResultType<'a>)
Own(Index<'a>)
Borrow(Index<'a>)
Trait Implementations§
Source§impl<'a> Debug for ComponentDefinedType<'a>
impl<'a> Debug for ComponentDefinedType<'a>
Source§impl Default for ComponentDefinedType<'_>
impl Default for ComponentDefinedType<'_>
Auto Trait Implementations§
impl<'a> Freeze for ComponentDefinedType<'a>
impl<'a> RefUnwindSafe for ComponentDefinedType<'a>
impl<'a> Send for ComponentDefinedType<'a>
impl<'a> Sync for ComponentDefinedType<'a>
impl<'a> Unpin for ComponentDefinedType<'a>
impl<'a> UnwindSafe for ComponentDefinedType<'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