#[repr(C)]pub struct ArrayExpr<'ast> { /* private fields */ }
Expand description
An expression constructing an array.
// vvvvvvvvvvvv An array expression with four element expressions
let array_1 = [1, 2, 3, 4];
// vvvvvv A repeat array expression with repeat and length operands
let array_2 = [6; 3];
Implementations§
Trait Implementations§
Source§impl<'ast> ExprData<'ast> for ArrayExpr<'ast>
impl<'ast> ExprData<'ast> for ArrayExpr<'ast>
Source§fn precedence(&self) -> ExprPrecedence
fn precedence(&self) -> ExprPrecedence
Returns the
ExprPrecedence
of this expression.Auto Trait Implementations§
impl<'ast> Freeze for ArrayExpr<'ast>
impl<'ast> RefUnwindSafe for ArrayExpr<'ast>
impl<'ast> !Send for ArrayExpr<'ast>
impl<'ast> !Sync for ArrayExpr<'ast>
impl<'ast> Unpin for ArrayExpr<'ast>
impl<'ast> UnwindSafe for ArrayExpr<'ast>
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