pub enum TypeDecl<'a> {
Variant(VariantDecl<'a>),
Record(RecordDecl<'a>),
Flags(FlagsDecl<'a>),
Enum(EnumDecl<'a>),
Alias(TypeAlias<'a>),
}
Expand description
Represents a top-level type declaration in the AST.
Unlike tin interfaces and worlds, resources cannot be declared at the top-level.
Variants§
Variant(VariantDecl<'a>)
The declaration is for a variant.
Record(RecordDecl<'a>)
The declaration is for a record.
Flags(FlagsDecl<'a>)
The declaration is for a flags.
Enum(EnumDecl<'a>)
The declaration is for an enum.
Alias(TypeAlias<'a>)
The declaration is for a type alias.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TypeDecl<'a>
impl<'a> RefUnwindSafe for TypeDecl<'a>
impl<'a> Send for TypeDecl<'a>
impl<'a> Sync for TypeDecl<'a>
impl<'a> Unpin for TypeDecl<'a>
impl<'a> UnwindSafe for TypeDecl<'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