[−][src]Struct rustc_trait_selection::infer::error_reporting::nice_region_error::NiceRegionError
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]
infcx: &'cx InferCtxt<'cx, 'tcx>,
error: RegionResolutionError<'tcx>
) -> NiceRegionError<'cx, 'tcx>
pub fn new_from_span(
infcx: &'cx InferCtxt<'cx, 'tcx>,
span: Span,
sub: &'tcx RegionKind,
sup: &'tcx RegionKind
) -> NiceRegionError<'cx, 'tcx>[src]
infcx: &'cx InferCtxt<'cx, 'tcx>,
span: Span,
sub: &'tcx RegionKind,
sup: &'tcx RegionKind
) -> NiceRegionError<'cx, 'tcx>
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,
'tcx: 'cx,
impl<'cx, 'tcx> !UnwindSafe for NiceRegionError<'cx, 'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.