pub struct CompactConstructorDecl {
pub doc_comment: Vec<Comment>,
pub modifiers: Vec<Modifier>,
pub name: Ident,
pub body: ConstructorBody,
}Expand description
A compact constructor declaration for records.
Fields§
§doc_comment: Vec<Comment>§modifiers: Vec<Modifier>§name: Ident§body: ConstructorBodyTrait Implementations§
Source§impl Clone for CompactConstructorDecl
impl Clone for CompactConstructorDecl
Source§fn clone(&self) -> CompactConstructorDecl
fn clone(&self) -> CompactConstructorDecl
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 CompactConstructorDecl
impl Debug for CompactConstructorDecl
Source§impl Hash for CompactConstructorDecl
impl Hash for CompactConstructorDecl
Source§impl PartialEq for CompactConstructorDecl
impl PartialEq for CompactConstructorDecl
Source§fn eq(&self, other: &CompactConstructorDecl) -> bool
fn eq(&self, other: &CompactConstructorDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CompactConstructorDecl
impl StructuralPartialEq for CompactConstructorDecl
Auto Trait Implementations§
impl Freeze for CompactConstructorDecl
impl RefUnwindSafe for CompactConstructorDecl
impl Send for CompactConstructorDecl
impl Sync for CompactConstructorDecl
impl Unpin for CompactConstructorDecl
impl UnsafeUnpin for CompactConstructorDecl
impl UnwindSafe for CompactConstructorDecl
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