Struct rustc_mir_build::thir::pattern::usefulness::PatCtxt [−][src]
pub(super) struct PatCtxt<'a, 'p, 'tcx> {
pub(super) cx: &'a MatchCheckCtxt<'p, 'tcx>,
pub(super) ty: Ty<'tcx>,
pub(super) span: Span,
pub(super) is_top_level: bool,
}Fields
cx: &'a MatchCheckCtxt<'p, 'tcx>ty: Ty<'tcx>Expand description
Type of the current column under investigation.
span: SpanExpand description
Span of the current pattern under investigation.
is_top_level: boolExpand description
Whether the current pattern is the whole pattern as found in a match arm, or if it’s a subpattern.
Trait Implementations
impl<'a, 'p, 'tcx> Copy for PatCtxt<'a, 'p, 'tcx>[src]
Auto Trait Implementations
impl<'a, 'p, 'tcx> !RefUnwindSafe for PatCtxt<'a, 'p, 'tcx>
impl<'a, 'p, 'tcx> !Send for PatCtxt<'a, 'p, 'tcx>
impl<'a, 'p, 'tcx> !Sync for PatCtxt<'a, 'p, 'tcx>
impl<'a, 'p, 'tcx> Unpin for PatCtxt<'a, 'p, 'tcx> where
'p: 'a,
'tcx: 'a,
'p: 'a,
'tcx: 'a,
impl<'a, 'p, 'tcx> !UnwindSafe for PatCtxt<'a, 'p, 'tcx>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,