[−][src]Struct rustc_trait_selection::infer::error_reporting::nice_region_error::NiceRegionError

pub struct NiceRegionError<'cx, 'tcx> {
    infcx: &'cx InferCtxt<'cx, 'tcx>,
    error: Option<RegionResolutionError<'tcx>>,
    regions: Option<(Span, &'tcx RegionKind, &'tcx RegionKind)>,
}

Fields

infcx: &'cx InferCtxt<'cx, 'tcx>error: Option<RegionResolutionError<'tcx>>regions: Option<(Span, &'tcx RegionKind, &'tcx RegionKind)>

Implementations

impl<'cx, 'tcx> NiceRegionError<'cx, 'tcx>[src]

pub fn new(
    infcx: &'cx InferCtxt<'cx, 'tcx>,
    error: RegionResolutionError<'tcx>
) -> NiceRegionError<'cx, 'tcx>
[src]

pub fn new_from_span(
    infcx: &'cx InferCtxt<'cx, 'tcx>,
    span: Span,
    sub: &'tcx RegionKind,
    sup: &'tcx RegionKind
) -> NiceRegionError<'cx, 'tcx>
[src]

pub fn try_report_from_nll(&self) -> Option<DiagnosticBuilder<'cx>>[src]

pub fn try_report(&self) -> Option<ErrorReported>[src]

pub fn regions(&self) -> Option<(Span, &'tcx RegionKind, &'tcx RegionKind)>[src]

Auto Trait Implementations

impl<'cx, 'tcx> !RefUnwindSafe for NiceRegionError<'cx, 'tcx>

impl<'cx, 'tcx> !Send for NiceRegionError<'cx, 'tcx>

impl<'cx, 'tcx> !Sync for NiceRegionError<'cx, 'tcx>

impl<'cx, 'tcx> Unpin for NiceRegionError<'cx, 'tcx> where
    'tcx: 'cx, 

impl<'cx, 'tcx> !UnwindSafe for NiceRegionError<'cx, '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<T> From<T> for T[src]

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

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.

impl<T> WithConstness for T[src]