pub struct RecordDecl {
pub doc_comment: Vec<Comment>,
pub modifiers: Vec<Modifier>,
pub record_span: Span,
pub name: Ident,
pub type_params: Option<TypeParameters>,
pub components: RecordComponents,
pub implements_clause: Option<ImplementsClause>,
pub body: RecordBody,
}Expand description
A record declaration (Java 16+).
Fields§
§doc_comment: Vec<Comment>§modifiers: Vec<Modifier>§record_span: Span§name: Ident§type_params: Option<TypeParameters>§components: RecordComponents§implements_clause: Option<ImplementsClause>§body: RecordBodyImplementations§
Trait Implementations§
Source§impl Clone for RecordDecl
impl Clone for RecordDecl
Source§fn clone(&self) -> RecordDecl
fn clone(&self) -> RecordDecl
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 RecordDecl
impl Debug for RecordDecl
impl Eq for RecordDecl
Source§impl Hash for RecordDecl
impl Hash for RecordDecl
Source§impl PartialEq for RecordDecl
impl PartialEq for RecordDecl
Source§fn eq(&self, other: &RecordDecl) -> bool
fn eq(&self, other: &RecordDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecordDecl
Auto Trait Implementations§
impl Freeze for RecordDecl
impl RefUnwindSafe for RecordDecl
impl Send for RecordDecl
impl Sync for RecordDecl
impl Unpin for RecordDecl
impl UnsafeUnpin for RecordDecl
impl UnwindSafe for RecordDecl
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