Struct rustc_mir_build::thir::pattern::usefulness::MatchArm
source · [−]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
impl<'p, 'tcx> Copy for MatchArm<'p, 'tcx>
Auto Trait Implementations
impl<'p, 'tcx> !RefUnwindSafe for MatchArm<'p, 'tcx>
impl<'p, 'tcx> !Send for MatchArm<'p, 'tcx>
impl<'p, 'tcx> !Sync for MatchArm<'p, 'tcx>
impl<'p, 'tcx> Unpin for MatchArm<'p, 'tcx>where
'tcx: 'p,
impl<'p, 'tcx> !UnwindSafe for MatchArm<'p, 'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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