pub enum ComponentTypeDecl<'a> {
CoreType(CoreType<'a>),
Type(Type<'a>),
Alias(Alias<'a>),
Import(ComponentImport<'a>),
Export(ComponentExportType<'a>),
}Available on crate feature
component-model only.Expand description
A declaration of a component type.
Variants§
CoreType(CoreType<'a>)
A core type definition local to the component type.
Type(Type<'a>)
A type definition local to the component type.
Alias(Alias<'a>)
An alias local to the component type.
Import(ComponentImport<'a>)
An import of the component type.
Export(ComponentExportType<'a>)
An export of the component type.
Trait Implementations§
Source§impl<'a> Debug for ComponentTypeDecl<'a>
impl<'a> Debug for ComponentTypeDecl<'a>
Source§impl<'a> From<Alias<'a>> for ComponentTypeDecl<'a>
impl<'a> From<Alias<'a>> for ComponentTypeDecl<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComponentTypeDecl<'a>
impl<'a> RefUnwindSafe for ComponentTypeDecl<'a>
impl<'a> Send for ComponentTypeDecl<'a>
impl<'a> Sync for ComponentTypeDecl<'a>
impl<'a> Unpin for ComponentTypeDecl<'a>
impl<'a> UnwindSafe for ComponentTypeDecl<'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