pub enum ArrayRest {
Ignored,
Named(String),
}Expand description
What ..rest does at the tail of an array pattern.
Variants§
Ignored
.. — matches any remaining elements, binds nothing.
Named(String)
..name — captures remaining elements as an array.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArrayRest
impl RefUnwindSafe for ArrayRest
impl Send for ArrayRest
impl Sync for ArrayRest
impl Unpin for ArrayRest
impl UnsafeUnpin for ArrayRest
impl UnwindSafe for ArrayRest
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