Struct rustc_mir::borrow_check::region_infer::RegionDefinition [−][src]
pub(crate) struct RegionDefinition<'tcx> {
pub(super) origin: NllRegionVariableOrigin,
pub(super) universe: UniverseIndex,
pub(super) external_name: Option<Region<'tcx>>,
}Fields
origin: NllRegionVariableOriginExpand description
What kind of variable is this – a free region? existential
variable? etc. (See the NllRegionVariableOrigin for more
info.)
universe: UniverseIndexExpand description
Which universe is this region variable defined in? This is
most often ty::UniverseIndex::ROOT, but when we encounter
forall-quantifiers like for<'a> { 'a = 'b }, we would create
the variable for 'a in a fresh universe that extends ROOT.
external_name: Option<Region<'tcx>>Expand description
If this is ’static or an early-bound region, then this is
Some(X) where X is the name of the region.
Implementations
impl<'tcx> RegionDefinition<'tcx>[src]
impl<'tcx> RegionDefinition<'tcx>[src]fn new(universe: UniverseIndex, rv_origin: RegionVariableOrigin) -> Self[src]
Auto Trait Implementations
impl<'tcx> RefUnwindSafe for RegionDefinition<'tcx>
impl<'tcx> Send for RegionDefinition<'tcx>
impl<'tcx> Sync for RegionDefinition<'tcx>
impl<'tcx> Unpin for RegionDefinition<'tcx>
impl<'tcx> UnwindSafe for RegionDefinition<'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]