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§
Source§impl<'p, Cx: Clone + PatCx> Clone for RedundancyExplanation<'p, Cx>
impl<'p, Cx: Clone + PatCx> Clone for RedundancyExplanation<'p, Cx>
Source§fn clone(&self) -> RedundancyExplanation<'p, Cx>
fn clone(&self) -> RedundancyExplanation<'p, Cx>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto 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> 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