#[non_exhaustive]pub enum ArrayElementKind {
Value(Expr),
Spread(Expr),
ByRef(Expr),
}Expand description
How an array element takes its value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for ArrayElementKind
impl Clone for ArrayElementKind
Source§impl Debug for ArrayElementKind
impl Debug for ArrayElementKind
Auto Trait Implementations§
impl Freeze for ArrayElementKind
impl RefUnwindSafe for ArrayElementKind
impl Send for ArrayElementKind
impl Sync for ArrayElementKind
impl Unpin for ArrayElementKind
impl UnsafeUnpin for ArrayElementKind
impl UnwindSafe for ArrayElementKind
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