pub struct IndexedPat<Cx: PatCx> {
pub idx: usize,
pub pat: DeconstructedPat<Cx>,
}
Expand description
A pattern with an index denoting which field it corresponds to.
Fields§
§idx: usize
§pat: DeconstructedPat<Cx>
Auto Trait Implementations§
impl<Cx> Freeze for IndexedPat<Cx>
impl<Cx> RefUnwindSafe for IndexedPat<Cx>where
<Cx as PatCx>::Ty: RefUnwindSafe,
<Cx as PatCx>::PatData: RefUnwindSafe,
<Cx as PatCx>::VariantIdx: RefUnwindSafe,
<Cx as PatCx>::StrLit: RefUnwindSafe,
impl<Cx> Send for IndexedPat<Cx>
impl<Cx> Sync for IndexedPat<Cx>
impl<Cx> Unpin for IndexedPat<Cx>
impl<Cx> UnwindSafe for IndexedPat<Cx>where
<Cx as PatCx>::Ty: UnwindSafe,
<Cx as PatCx>::PatData: UnwindSafe,
<Cx as PatCx>::VariantIdx: UnwindSafe,
<Cx as PatCx>::StrLit: UnwindSafe,
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