pub enum SliceKind {
FixedLen(usize),
VarLen(usize, usize),
}
Variants§
FixedLen(usize)
Patterns of length n
([x, y]
).
VarLen(usize, usize)
Patterns using the ..
notation ([x, .., y]
).
Captures any array constructor of length >= i + j
.
In the case where array_len
is Some(_)
,
this indicates that we only care about the first i
and the last j
values of the array,
and everything in between is a wildcard _
.
Implementations§
Trait Implementations§
impl Copy for SliceKind
impl Eq for SliceKind
impl StructuralPartialEq for SliceKind
Auto Trait Implementations§
impl Freeze for SliceKind
impl RefUnwindSafe for SliceKind
impl Send for SliceKind
impl Sync for SliceKind
impl Unpin for SliceKind
impl UnwindSafe for SliceKind
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