pub struct ArrayDimExpr {
pub annotations: Vec<Annotation>,
pub bracket_span: (Span, Span),
pub expr: Box<Expr>,
}Expand description
A dimension expression in array creation: [expr].
Fields§
§annotations: Vec<Annotation>§bracket_span: (Span, Span)§expr: Box<Expr>Trait Implementations§
Source§impl Clone for ArrayDimExpr
impl Clone for ArrayDimExpr
Source§fn clone(&self) -> ArrayDimExpr
fn clone(&self) -> ArrayDimExpr
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 ArrayDimExpr
impl Debug for ArrayDimExpr
impl Eq for ArrayDimExpr
Source§impl Hash for ArrayDimExpr
impl Hash for ArrayDimExpr
Source§impl PartialEq for ArrayDimExpr
impl PartialEq for ArrayDimExpr
Source§fn eq(&self, other: &ArrayDimExpr) -> bool
fn eq(&self, other: &ArrayDimExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ArrayDimExpr
Auto Trait Implementations§
impl Freeze for ArrayDimExpr
impl RefUnwindSafe for ArrayDimExpr
impl Send for ArrayDimExpr
impl Sync for ArrayDimExpr
impl Unpin for ArrayDimExpr
impl UnsafeUnpin for ArrayDimExpr
impl UnwindSafe for ArrayDimExpr
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