[−][src]Struct rustc_mir_build::thir::pattern::_match::PatCtxt

pub(in thir::pattern::_match) struct PatCtxt<'a, 'p, 'tcx> {
    cx: &'a MatchCheckCtxt<'p, 'tcx>,
    matrix: &'a Matrix<'p, 'tcx>,
    ty: Ty<'tcx>,
    span: Span,
    is_top_level: bool,
}

Fields

cx: &'a MatchCheckCtxt<'p, 'tcx>matrix: &'a Matrix<'p, 'tcx>

Current state of the matrix.

ty: Ty<'tcx>

Type of the current column under investigation.

span: Span

Span of the current pattern under investigation.

is_top_level: bool

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> Clone for PatCtxt<'a, 'p, 'tcx>[src]

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, 

impl<'a, 'p, 'tcx> !UnwindSafe for PatCtxt<'a, 'p, 'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.