Enum wast::component::ModuleTypeDecl
source · [−]pub enum ModuleTypeDecl<'a> {
Type(Type<'a>),
Alias(Alias<'a>),
Import(Import<'a>),
Export(&'a str, ItemSig<'a>),
}
Expand description
The declarations of a ModuleType
.
Variants
Type(Type<'a>)
A core type.
Alias(Alias<'a>)
An alias local to the component type.
Import(Import<'a>)
An import.
Export(&'a str, ItemSig<'a>)
An export.
Trait Implementations
sourceimpl<'a> Debug for ModuleTypeDecl<'a>
impl<'a> Debug for ModuleTypeDecl<'a>
sourceimpl<'a> From<Alias<'a>> for ModuleTypeDecl<'a>
impl<'a> From<Alias<'a>> for ModuleTypeDecl<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more