pub struct NewClassExpr {
pub new_span: Span,
pub type_args: Option<TypeArguments>,
pub class_type: Path,
pub paren_span: (Span, Span),
pub args: Vec<Expr>,
pub body: Option<ClassBodyDeclList>,
}Expand description
Class instance creation expression with optional body (anonymous class).
Fields§
§new_span: Span§type_args: Option<TypeArguments>§class_type: Path§paren_span: (Span, Span)§args: Vec<Expr>§body: Option<ClassBodyDeclList>Implementations§
Trait Implementations§
Source§impl Clone for NewClassExpr
impl Clone for NewClassExpr
Source§fn clone(&self) -> NewClassExpr
fn clone(&self) -> NewClassExpr
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 NewClassExpr
impl Debug for NewClassExpr
impl Eq for NewClassExpr
Source§impl Hash for NewClassExpr
impl Hash for NewClassExpr
Source§impl PartialEq for NewClassExpr
impl PartialEq for NewClassExpr
Source§fn eq(&self, other: &NewClassExpr) -> bool
fn eq(&self, other: &NewClassExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NewClassExpr
Auto Trait Implementations§
impl Freeze for NewClassExpr
impl RefUnwindSafe for NewClassExpr
impl Send for NewClassExpr
impl Sync for NewClassExpr
impl Unpin for NewClassExpr
impl UnsafeUnpin for NewClassExpr
impl UnwindSafe for NewClassExpr
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