pub struct ConstructorBody {
pub brace_span: (Span, Span),
pub explicit_constructor_call: Option<ExplicitConstructorCall>,
pub stmts: Vec<Stmt>,
}Expand description
A constructor body.
Fields§
§brace_span: (Span, Span)§explicit_constructor_call: Option<ExplicitConstructorCall>§stmts: Vec<Stmt>Trait Implementations§
Source§impl Clone for ConstructorBody
impl Clone for ConstructorBody
Source§fn clone(&self) -> ConstructorBody
fn clone(&self) -> ConstructorBody
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 ConstructorBody
impl Debug for ConstructorBody
impl Eq for ConstructorBody
Source§impl Hash for ConstructorBody
impl Hash for ConstructorBody
Source§impl PartialEq for ConstructorBody
impl PartialEq for ConstructorBody
Source§fn eq(&self, other: &ConstructorBody) -> bool
fn eq(&self, other: &ConstructorBody) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConstructorBody
Auto Trait Implementations§
impl Freeze for ConstructorBody
impl RefUnwindSafe for ConstructorBody
impl Send for ConstructorBody
impl Sync for ConstructorBody
impl Unpin for ConstructorBody
impl UnsafeUnpin for ConstructorBody
impl UnwindSafe for ConstructorBody
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