rustc_pattern_analysis::rustc

Type Alias RedundancyExplanation

Source
pub type RedundancyExplanation<'p, 'tcx> = RedundancyExplanation<'p, RustcPatCtxt<'p, 'tcx>>;

Aliased Type§

struct RedundancyExplanation<'p, 'tcx> {
    pub covered_by: Vec<&'p DeconstructedPat<RustcPatCtxt<'p, 'tcx>>>,
}

Fields§

§covered_by: Vec<&'p DeconstructedPat<RustcPatCtxt<'p, 'tcx>>>

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.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 24 bytes

Trait Implementations

Source§

impl<'p, Cx: Clone + PatCx> Clone for RedundancyExplanation<'p, Cx>

Source§

fn clone(&self) -> RedundancyExplanation<'p, Cx>

Returns a copy of the value. Read more
Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'p, Cx: Debug + PatCx> Debug for RedundancyExplanation<'p, Cx>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more