[][src]Struct rustc_mir::borrow_check::universal_regions::UniversalRegionsBuilder

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]

fn build(self) -> UniversalRegions<'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]

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 List<Ty<'tcx>>>
[src]

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, 

impl<'cx, 'tcx> !UnwindSafe for UniversalRegionsBuilder<'cx, 'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]