Struct rustc_mir::borrow_check::universal_regions::UniversalRegionsBuilder [−][src]
struct UniversalRegionsBuilder<'cx, 'tcx> {
infcx: &'cx InferCtxt<'cx, 'tcx>,
mir_def: WithOptConstParam<LocalDefId>,
mir_hir_id: HirId,
param_env: ParamEnv<'tcx>,
}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]
impl<'cx, 'tcx> UniversalRegionsBuilder<'cx, 'tcx>[src]fn build(self) -> UniversalRegions<'tcx>[src]
fn defining_ty(&self) -> DefiningTy<'tcx>[src]
fn defining_ty(&self) -> DefiningTy<'tcx>[src]Returns the “defining type” of the current MIR;
see DefiningTy for details.
fn compute_indices(
&self,
fr_static: RegionVid,
defining_ty: DefiningTy<'tcx>
) -> UniversalRegionIndices<'tcx>[src]
fn compute_indices(
&self,
fr_static: RegionVid,
defining_ty: DefiningTy<'tcx>
) -> UniversalRegionIndices<'tcx>[src]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.
fn compute_inputs_and_output(
&self,
indices: &UniversalRegionIndices<'tcx>,
defining_ty: DefiningTy<'tcx>
) -> Binder<'tcx, &'tcx List<Ty<'tcx>>>[src]
&self,
indices: &UniversalRegionIndices<'tcx>,
defining_ty: DefiningTy<'tcx>
) -> Binder<'tcx, &'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> 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]