pub enum Declaration<'tree> {
Show 19 variants
ClassDeclaration(Box<ClassDeclaration<'tree>>),
ConstructorDeclaration(Box<ConstructorDeclaration<'tree>>),
ConversionOperatorDeclaration(Box<ConversionOperatorDeclaration<'tree>>),
DelegateDeclaration(Box<DelegateDeclaration<'tree>>),
DestructorDeclaration(Box<DestructorDeclaration<'tree>>),
EnumDeclaration(Box<EnumDeclaration<'tree>>),
EventDeclaration(Box<EventDeclaration<'tree>>),
EventFieldDeclaration(Box<EventFieldDeclaration<'tree>>),
FieldDeclaration(Box<FieldDeclaration<'tree>>),
IndexerDeclaration(Box<IndexerDeclaration<'tree>>),
InterfaceDeclaration(Box<InterfaceDeclaration<'tree>>),
MethodDeclaration(Box<MethodDeclaration<'tree>>),
NamespaceDeclaration(Box<NamespaceDeclaration<'tree>>),
OperatorDeclaration(Box<OperatorDeclaration<'tree>>),
PreprocIf(Box<PreprocIf<'tree>>),
PropertyDeclaration(Box<PropertyDeclaration<'tree>>),
RecordDeclaration(Box<RecordDeclaration<'tree>>),
StructDeclaration(Box<StructDeclaration<'tree>>),
UsingDirective(Box<UsingDirective<'tree>>),
}Variants§
ClassDeclaration(Box<ClassDeclaration<'tree>>)
ConstructorDeclaration(Box<ConstructorDeclaration<'tree>>)
ConversionOperatorDeclaration(Box<ConversionOperatorDeclaration<'tree>>)
DelegateDeclaration(Box<DelegateDeclaration<'tree>>)
DestructorDeclaration(Box<DestructorDeclaration<'tree>>)
EnumDeclaration(Box<EnumDeclaration<'tree>>)
EventDeclaration(Box<EventDeclaration<'tree>>)
EventFieldDeclaration(Box<EventFieldDeclaration<'tree>>)
FieldDeclaration(Box<FieldDeclaration<'tree>>)
IndexerDeclaration(Box<IndexerDeclaration<'tree>>)
InterfaceDeclaration(Box<InterfaceDeclaration<'tree>>)
MethodDeclaration(Box<MethodDeclaration<'tree>>)
NamespaceDeclaration(Box<NamespaceDeclaration<'tree>>)
OperatorDeclaration(Box<OperatorDeclaration<'tree>>)
PreprocIf(Box<PreprocIf<'tree>>)
PropertyDeclaration(Box<PropertyDeclaration<'tree>>)
RecordDeclaration(Box<RecordDeclaration<'tree>>)
StructDeclaration(Box<StructDeclaration<'tree>>)
UsingDirective(Box<UsingDirective<'tree>>)
Trait Implementations§
Source§impl<'tree> Clone for Declaration<'tree>
impl<'tree> Clone for Declaration<'tree>
Source§fn clone(&self) -> Declaration<'tree>
fn clone(&self) -> Declaration<'tree>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'tree> Debug for Declaration<'tree>
impl<'tree> Debug for Declaration<'tree>
Source§impl<'tree> FromNode<'tree> for Declaration<'tree>
impl<'tree> FromNode<'tree> for Declaration<'tree>
Source§impl<'tree> PartialEq for Declaration<'tree>
impl<'tree> PartialEq for Declaration<'tree>
Source§impl Spanned for Declaration<'_>
impl Spanned for Declaration<'_>
impl<'tree> Eq for Declaration<'tree>
impl<'tree> StructuralPartialEq for Declaration<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for Declaration<'tree>
impl<'tree> RefUnwindSafe for Declaration<'tree>
impl<'tree> Send for Declaration<'tree>
impl<'tree> Sync for Declaration<'tree>
impl<'tree> Unpin for Declaration<'tree>
impl<'tree> UnsafeUnpin for Declaration<'tree>
impl<'tree> UnwindSafe for Declaration<'tree>
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