Struct rustc_infer::infer::free_regions::RegionRelations [−][src]
pub struct RegionRelations<'a, 'tcx> {
pub tcx: TyCtxt<'tcx>,
pub context: DefId,
pub free_regions: &'a FreeRegionMap<'tcx>,
}Expand description
Combines a FreeRegionMap and a TyCtxt.
This stuff is a bit convoluted and should be refactored, but as we transition to NLL, it’ll all go away anyhow.
Fields
tcx: TyCtxt<'tcx>context: DefIdExpand description
The context used for debug messages
free_regions: &'a FreeRegionMap<'tcx>Expand description
Free-region relationships.
Implementations
impl<'a, 'tcx> RegionRelations<'a, 'tcx>[src]
impl<'a, 'tcx> RegionRelations<'a, 'tcx>[src]pub fn new(
tcx: TyCtxt<'tcx>,
context: DefId,
free_regions: &'a FreeRegionMap<'tcx>
) -> Self[src]
tcx: TyCtxt<'tcx>,
context: DefId,
free_regions: &'a FreeRegionMap<'tcx>
) -> Self
pub fn lub_free_regions(
&self,
r_a: Region<'tcx>,
r_b: Region<'tcx>
) -> Region<'tcx>[src]
&self,
r_a: Region<'tcx>,
r_b: Region<'tcx>
) -> Region<'tcx>
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for RegionRelations<'a, 'tcx>
impl<'a, 'tcx> !Send for RegionRelations<'a, 'tcx>
impl<'a, 'tcx> !Sync for RegionRelations<'a, 'tcx>
impl<'a, 'tcx> Unpin for RegionRelations<'a, 'tcx> where
'tcx: 'a,
'tcx: 'a,
impl<'a, 'tcx> !UnwindSafe for RegionRelations<'a, '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> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,