Struct rustc_mir_build::thir::pattern::usefulness::MatchArm [−][src]
pub(crate) struct MatchArm<'p, 'tcx> {
pub(crate) pat: &'p DeconstructedPat<'p, 'tcx>,
pub(crate) hir_id: HirId,
pub(crate) has_guard: bool,
}
Expand description
The arm of a match expression.
Fields
pat: &'p DeconstructedPat<'p, 'tcx>
The pattern must have been lowered through check_match::MatchVisitor::lower_pattern
.
hir_id: HirId
has_guard: bool
Trait Implementations
Auto Trait Implementations
impl<'p, 'tcx> !RefUnwindSafe for MatchArm<'p, 'tcx>
impl<'p, 'tcx> !UnwindSafe for MatchArm<'p, 'tcx>
Blanket Implementations
Mutably borrows from an owned value. Read more
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