pub struct ArrayElement {
pub key: Option<Expr>,
pub value: Expr,
pub unpack: bool,
pub by_ref: bool,
pub span: Span,
}Expand description
An element of an array literal.
Fields§
§key: Option<Expr>Key expression, if any.
value: ExprElement value.
unpack: boolWhether the element is spread with ....
by_ref: boolWhether the value is taken by reference.
span: SpanSource span.
Trait Implementations§
Source§impl Clone for ArrayElement
impl Clone for ArrayElement
Source§impl Debug for ArrayElement
impl Debug for ArrayElement
Auto Trait Implementations§
impl Freeze for ArrayElement
impl RefUnwindSafe for ArrayElement
impl Send for ArrayElement
impl Sync for ArrayElement
impl Unpin for ArrayElement
impl UnsafeUnpin for ArrayElement
impl UnwindSafe for ArrayElement
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