rustc_pattern_analysis::rustc

Type Alias MatchArm

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

Aliased Type§

struct MatchArm<'p, 'tcx> {
    pub pat: &'p DeconstructedPat<RustcPatCtxt<'p, 'tcx>>,
    pub has_guard: bool,
    pub arm_data: HirId,
}

Fields§

§pat: &'p DeconstructedPat<RustcPatCtxt<'p, 'tcx>>§has_guard: bool§arm_data: HirId

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: PatCx> Clone for MatchArm<'p, Cx>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<'p, Cx: Debug + PatCx> Debug for MatchArm<'p, Cx>
where Cx::ArmData: Debug,

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'p, Cx: PatCx> Copy for MatchArm<'p, Cx>