pub enum ModuleTypeDecl<'a> {
Type(Type<'a>),
Rec(Rec<'a>),
Alias(Alias<'a>),
Import(Import<'a>),
Export(&'a str, ItemSig<'a>),
}Available on crate feature
component-model only.Expand description
The declarations of a ModuleType.
Variants§
Type(Type<'a>)
A core type.
Rec(Rec<'a>)
A core recursion group.
Alias(Alias<'a>)
An alias local to the component type.
Import(Import<'a>)
An import.
Export(&'a str, ItemSig<'a>)
An export.
Trait Implementations§
Source§impl<'a> Debug for ModuleTypeDecl<'a>
impl<'a> Debug for ModuleTypeDecl<'a>
Source§impl<'a> From<Alias<'a>> for ModuleTypeDecl<'a>
impl<'a> From<Alias<'a>> for ModuleTypeDecl<'a>
Auto Trait Implementations§
impl<'a> Freeze for ModuleTypeDecl<'a>
impl<'a> RefUnwindSafe for ModuleTypeDecl<'a>
impl<'a> Send for ModuleTypeDecl<'a>
impl<'a> Sync for ModuleTypeDecl<'a>
impl<'a> Unpin for ModuleTypeDecl<'a>
impl<'a> UnwindSafe for ModuleTypeDecl<'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