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