[−][src]Struct rustc_mir::borrow_check::universal_regions::UniversalRegionsBuilder
Fields
infcx: &'cx InferCtxt<'cx, 'tcx>mir_def: WithOptConstParam<LocalDefId>mir_hir_id: HirIdparam_env: ParamEnv<'tcx>Implementations
impl<'cx, 'tcx> UniversalRegionsBuilder<'cx, 'tcx>[src]
pub(in borrow_check::universal_regions) fn build(
self
) -> UniversalRegions<'tcx>[src]
self
) -> UniversalRegions<'tcx>
pub(in borrow_check::universal_regions) fn defining_ty(
&self
) -> DefiningTy<'tcx>[src]
&self
) -> DefiningTy<'tcx>
Returns the "defining type" of the current MIR;
see DefiningTy for details.
pub(in borrow_check::universal_regions) fn compute_indices(
&self,
fr_static: RegionVid,
defining_ty: DefiningTy<'tcx>
) -> UniversalRegionIndices<'tcx>[src]
&self,
fr_static: RegionVid,
defining_ty: DefiningTy<'tcx>
) -> UniversalRegionIndices<'tcx>
Builds a hashmap that maps from the universal regions that are
in scope (as a ty::Region<'tcx>) to their indices (as a
RegionVid). The map returned by this function contains only
the early-bound regions.
pub(in borrow_check::universal_regions) fn compute_inputs_and_output(
&self,
indices: &UniversalRegionIndices<'tcx>,
defining_ty: DefiningTy<'tcx>
) -> Binder<&'tcx List<Ty<'tcx>>>[src]
&self,
indices: &UniversalRegionIndices<'tcx>,
defining_ty: DefiningTy<'tcx>
) -> Binder<&'tcx List<Ty<'tcx>>>
Auto Trait Implementations
impl<'cx, 'tcx> !RefUnwindSafe for UniversalRegionsBuilder<'cx, 'tcx>
impl<'cx, 'tcx> !Send for UniversalRegionsBuilder<'cx, 'tcx>
impl<'cx, 'tcx> !Sync for UniversalRegionsBuilder<'cx, 'tcx>
impl<'cx, 'tcx> Unpin for UniversalRegionsBuilder<'cx, 'tcx> where
'tcx: 'cx,
'tcx: 'cx,
impl<'cx, 'tcx> !UnwindSafe for UniversalRegionsBuilder<'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,
pub 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.
pub 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.