pub enum ExplicitConstructorCall {
This {
type_args: Option<TypeArguments>,
this_span: Span,
paren_span: (Span, Span),
args: Vec<Expr>,
semi_span: Span,
},
Super {
type_args: Option<TypeArguments>,
super_span: Span,
paren_span: (Span, Span),
args: Vec<Expr>,
semi_span: Span,
},
SuperFromExpr {
target: Box<Expr>,
dot_span: Span,
type_args: Option<TypeArguments>,
super_span: Span,
paren_span: (Span, Span),
args: Vec<Expr>,
semi_span: Span,
},
}Expand description
An explicit constructor invocation: this(args) or super(args).
Variants§
This
Fields
§
type_args: Option<TypeArguments>Super
Fields
§
type_args: Option<TypeArguments>SuperFromExpr
Trait Implementations§
Source§impl Clone for ExplicitConstructorCall
impl Clone for ExplicitConstructorCall
Source§fn clone(&self) -> ExplicitConstructorCall
fn clone(&self) -> ExplicitConstructorCall
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 ExplicitConstructorCall
impl Debug for ExplicitConstructorCall
Source§impl Hash for ExplicitConstructorCall
impl Hash for ExplicitConstructorCall
Source§impl PartialEq for ExplicitConstructorCall
impl PartialEq for ExplicitConstructorCall
Source§fn eq(&self, other: &ExplicitConstructorCall) -> bool
fn eq(&self, other: &ExplicitConstructorCall) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExplicitConstructorCall
impl StructuralPartialEq for ExplicitConstructorCall
Auto Trait Implementations§
impl Freeze for ExplicitConstructorCall
impl RefUnwindSafe for ExplicitConstructorCall
impl Send for ExplicitConstructorCall
impl Sync for ExplicitConstructorCall
impl Unpin for ExplicitConstructorCall
impl UnsafeUnpin for ExplicitConstructorCall
impl UnwindSafe for ExplicitConstructorCall
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