pub struct ArrayNewExpr {
pub new_span: Span,
pub elem_type: Type,
pub dim_exprs: Vec<ArrayDimExpr>,
pub dims: Vec<ArrayDim>,
pub initializer: Option<ArrayInitExpr>,
}Expand description
Array creation expression: new int[10] or new int[]{1, 2, 3}.
Fields§
§new_span: Span§elem_type: Type§dim_exprs: Vec<ArrayDimExpr>§dims: Vec<ArrayDim>§initializer: Option<ArrayInitExpr>Implementations§
Trait Implementations§
Source§impl Clone for ArrayNewExpr
impl Clone for ArrayNewExpr
Source§fn clone(&self) -> ArrayNewExpr
fn clone(&self) -> ArrayNewExpr
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 ArrayNewExpr
impl Debug for ArrayNewExpr
impl Eq for ArrayNewExpr
Source§impl Hash for ArrayNewExpr
impl Hash for ArrayNewExpr
Source§impl PartialEq for ArrayNewExpr
impl PartialEq for ArrayNewExpr
Source§fn eq(&self, other: &ArrayNewExpr) -> bool
fn eq(&self, other: &ArrayNewExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ArrayNewExpr
Auto Trait Implementations§
impl Freeze for ArrayNewExpr
impl RefUnwindSafe for ArrayNewExpr
impl Send for ArrayNewExpr
impl Sync for ArrayNewExpr
impl Unpin for ArrayNewExpr
impl UnsafeUnpin for ArrayNewExpr
impl UnwindSafe for ArrayNewExpr
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