Enum rustc_mir_build::thir::pattern::deconstruct_pat::SliceKind [−][src]
Variants
FixedLen(u64)Expand description
Patterns of length n ([x, y]).
Expand description
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
impl SliceKind[src]
impl SliceKind[src]Trait Implementations
impl Copy for SliceKind[src]
impl Eq for SliceKind[src]
impl StructuralEq for SliceKind[src]
impl StructuralPartialEq for SliceKind[src]
Auto Trait Implementations
impl RefUnwindSafe for SliceKind
impl Send for SliceKind
impl Sync for SliceKind
impl Unpin for SliceKind
impl UnwindSafe for SliceKind
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,