pub enum RecordBodyDecl {
Field(FieldDecl),
Method(MethodDecl),
Constructor(ConstructorDecl),
InstanceInit(InstanceInit),
StaticInit(StaticInit),
Class(ClassDecl),
Interface(InterfaceDecl),
Enum(EnumDecl),
Record(RecordDecl),
CompactConstructor(CompactConstructorDecl),
Empty(Span),
}Expand description
A member of a record body.
Variants§
Field(FieldDecl)
Method(MethodDecl)
Constructor(ConstructorDecl)
InstanceInit(InstanceInit)
StaticInit(StaticInit)
Class(ClassDecl)
Interface(InterfaceDecl)
Enum(EnumDecl)
Record(RecordDecl)
CompactConstructor(CompactConstructorDecl)
A compact constructor: public Name { ... }.
Empty(Span)
Trait Implementations§
Source§impl Clone for RecordBodyDecl
impl Clone for RecordBodyDecl
Source§fn clone(&self) -> RecordBodyDecl
fn clone(&self) -> RecordBodyDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordBodyDecl
impl Debug for RecordBodyDecl
impl Eq for RecordBodyDecl
Source§impl Hash for RecordBodyDecl
impl Hash for RecordBodyDecl
Source§impl PartialEq for RecordBodyDecl
impl PartialEq for RecordBodyDecl
Source§fn eq(&self, other: &RecordBodyDecl) -> bool
fn eq(&self, other: &RecordBodyDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecordBodyDecl
Auto Trait Implementations§
impl Freeze for RecordBodyDecl
impl RefUnwindSafe for RecordBodyDecl
impl Send for RecordBodyDecl
impl Sync for RecordBodyDecl
impl Unpin for RecordBodyDecl
impl UnsafeUnpin for RecordBodyDecl
impl UnwindSafe for RecordBodyDecl
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