pub struct ArrayInitExpr {
pub brace_span: (Span, Span),
pub elements: Vec<Expr>,
pub trailing_comma: bool,
}Expand description
Array initializer: {1, 2, 3}.
Fields§
§brace_span: (Span, Span)§elements: Vec<Expr>§trailing_comma: boolTrait Implementations§
Source§impl Clone for ArrayInitExpr
impl Clone for ArrayInitExpr
Source§fn clone(&self) -> ArrayInitExpr
fn clone(&self) -> ArrayInitExpr
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 ArrayInitExpr
impl Debug for ArrayInitExpr
Source§impl Hash for ArrayInitExpr
impl Hash for ArrayInitExpr
Source§impl PartialEq for ArrayInitExpr
impl PartialEq for ArrayInitExpr
Source§fn eq(&self, other: &ArrayInitExpr) -> bool
fn eq(&self, other: &ArrayInitExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ArrayInitExpr
impl StructuralPartialEq for ArrayInitExpr
Auto Trait Implementations§
impl Freeze for ArrayInitExpr
impl RefUnwindSafe for ArrayInitExpr
impl Send for ArrayInitExpr
impl Sync for ArrayInitExpr
impl Unpin for ArrayInitExpr
impl UnsafeUnpin for ArrayInitExpr
impl UnwindSafe for ArrayInitExpr
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