pub struct ArrayElement {
pub key: Option<Expr>,
pub kind: ArrayElementKind,
pub span: Span,
}Expand description
An element of an array literal.
Fields§
§key: Option<Expr>Key expression, if any.
kind: ArrayElementKindThe element’s value and how it is taken.
span: SpanSource span.
Implementations§
Source§impl ArrayElement
impl ArrayElement
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