pub struct RedundancyExplanation<'p, Cx: PatCx> {
pub covered_by: Vec<&'p DeconstructedPat<Cx>>,
}Expand description
Indicates why a given pattern is considered redundant.
Fields§
§covered_by: Vec<&'p DeconstructedPat<Cx>>All the values matched by this pattern are already matched by the given set of patterns. This list is not guaranteed to be minimal but the contained patterns are at least guaranteed to intersect this pattern.
Trait Implementations§
Auto Trait Implementations§
impl<'p, Cx> Freeze for RedundancyExplanation<'p, Cx>
impl<'p, Cx> RefUnwindSafe for RedundancyExplanation<'p, Cx>where
<Cx as PatCx>::Ty: RefUnwindSafe,
<Cx as PatCx>::PatData: RefUnwindSafe,
<Cx as PatCx>::VariantIdx: RefUnwindSafe,
<Cx as PatCx>::StrLit: RefUnwindSafe,
impl<'p, Cx> Send for RedundancyExplanation<'p, Cx>
impl<'p, Cx> Sync for RedundancyExplanation<'p, Cx>
impl<'p, Cx> Unpin for RedundancyExplanation<'p, Cx>
impl<'p, Cx> UnsafeUnpin for RedundancyExplanation<'p, Cx>
impl<'p, Cx> UnwindSafe for RedundancyExplanation<'p, Cx>where
<Cx as PatCx>::Ty: RefUnwindSafe,
<Cx as PatCx>::PatData: RefUnwindSafe,
<Cx as PatCx>::VariantIdx: RefUnwindSafe,
<Cx as PatCx>::StrLit: RefUnwindSafe,
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