pub struct RecordDeclaration {
pub name: String,
pub modifiers: Vec<String>,
pub annotations: Vec<Annotation>,
pub parameters: Vec<Parameter>,
pub implements: Vec<String>,
pub members: Vec<Member>,
pub span: Range<usize>,
}Expand description
Record declaration.
Fields§
§name: StringRecord name.
modifiers: Vec<String>Modifiers.
annotations: Vec<Annotation>Annotations
parameters: Vec<Parameter>Record parameters (e.g., primary constructor parameters).
implements: Vec<String>Implemented interfaces.
members: Vec<Member>Record members.
span: Range<usize>The span of the record declaration in the source file.
Trait Implementations§
Source§impl Clone for RecordDeclaration
impl Clone for RecordDeclaration
Source§fn clone(&self) -> RecordDeclaration
fn clone(&self) -> RecordDeclaration
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 Debug for RecordDeclaration
impl Debug for RecordDeclaration
Source§impl<'de> Deserialize<'de> for RecordDeclaration
impl<'de> Deserialize<'de> for RecordDeclaration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RecordDeclaration
impl PartialEq for RecordDeclaration
Source§impl Serialize for RecordDeclaration
impl Serialize for RecordDeclaration
impl StructuralPartialEq for RecordDeclaration
Auto Trait Implementations§
impl Freeze for RecordDeclaration
impl RefUnwindSafe for RecordDeclaration
impl Send for RecordDeclaration
impl Sync for RecordDeclaration
impl Unpin for RecordDeclaration
impl UnsafeUnpin for RecordDeclaration
impl UnwindSafe for RecordDeclaration
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