pub enum TypeDecl {
Class(ClassDecl),
Interface(InterfaceDecl),
Enum(EnumDecl),
Record(RecordDecl),
AnnotationType(AnnotationInterfaceDecl),
Empty(Span),
}Expand description
A top-level type declaration or semicolon.
Variants§
Class(ClassDecl)
Interface(InterfaceDecl)
Enum(EnumDecl)
Record(RecordDecl)
AnnotationType(AnnotationInterfaceDecl)
Empty(Span)
A standalone semicolon in the top level.
Implementations§
Trait Implementations§
Source§impl Parse for TypeDecl
impl Parse for TypeDecl
Source§fn parse(input: &ParseStream<'_>) -> Result<Self>
fn parse(input: &ParseStream<'_>) -> Result<Self>
Parse this type from the given
ParseStream.impl Eq for TypeDecl
impl StructuralPartialEq for TypeDecl
Auto Trait Implementations§
impl Freeze for TypeDecl
impl RefUnwindSafe for TypeDecl
impl Send for TypeDecl
impl Sync for TypeDecl
impl Unpin for TypeDecl
impl UnsafeUnpin for TypeDecl
impl UnwindSafe for TypeDecl
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