pub struct MatchArm<'p, Cx: PatCx> {
pub pat: &'p DeconstructedPat<Cx>,
pub has_guard: bool,
pub arm_data: Cx::ArmData,
}
Expand description
The arm of a match expression.
Fields§
§pat: &'p DeconstructedPat<Cx>
§has_guard: bool
§arm_data: Cx::ArmData
Trait Implementations§
impl<'p, Cx: PatCx> Copy for MatchArm<'p, Cx>
Auto Trait Implementations§
impl<'p, Cx> Freeze for MatchArm<'p, Cx>
impl<'p, Cx> RefUnwindSafe for MatchArm<'p, Cx>where
<Cx as PatCx>::ArmData: RefUnwindSafe,
<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 MatchArm<'p, Cx>
impl<'p, Cx> Sync for MatchArm<'p, Cx>
impl<'p, Cx> Unpin for MatchArm<'p, Cx>
impl<'p, Cx> UnwindSafe for MatchArm<'p, Cx>where
<Cx as PatCx>::ArmData: UnwindSafe,
<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