[−][src]Enum rustc_mir_build::thir::pattern::_match::SliceKind
Variants
FixedLen(u64)Patterns of length n ([x, y]).
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]
pub(in thir::pattern::_match) fn arity(
self
) -> u64[src]
self
) -> u64
pub(in thir::pattern::_match) fn covers_length(
self,
other_len: u64
) -> bool[src]
self,
other_len: u64
) -> bool
Whether this pattern includes patterns of length other_len.
Trait Implementations
impl Clone for SliceKind[src]
impl Copy for SliceKind[src]
impl Debug for SliceKind[src]
impl Eq for SliceKind[src]
impl PartialEq<SliceKind> 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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,