pub enum TypeDef<'a> {
Defined(ComponentDefinedType<'a>),
Func(ComponentFunctionType<'a>),
Component(ComponentType<'a>),
Instance(InstanceType<'a>),
Resource(ResourceType<'a>),
}
Available on crate feature
component-model
only.Expand description
A definition of a component type.
Variants§
Defined(ComponentDefinedType<'a>)
A defined value type.
Func(ComponentFunctionType<'a>)
A component function type.
Component(ComponentType<'a>)
A component type.
Instance(InstanceType<'a>)
An instance type.
Resource(ResourceType<'a>)
A resource type.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TypeDef<'a>
impl<'a> RefUnwindSafe for TypeDef<'a>
impl<'a> Send for TypeDef<'a>
impl<'a> Sync for TypeDef<'a>
impl<'a> Unpin for TypeDef<'a>
impl<'a> UnwindSafe for TypeDef<'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