Struct rustc_trans::middle::typeck::infer::region_inference::RegionVarBindingsExperimental [-]  [+] [src]

pub struct RegionVarBindings<'a, 'tcx> {
    // some fields omitted
}

Methods

impl<'a, 'tcx> RegionVarBindings<'a, 'tcx>

fn new(tcx: &'a ctxt<'tcx>) -> RegionVarBindings<'a, 'tcx>

fn start_snapshot(&self) -> RegionSnapshot

fn mark(&self) -> RegionMark

fn commit(&self, snapshot: RegionSnapshot)

fn rollback_to(&self, snapshot: RegionSnapshot)

fn num_vars(&self) -> uint

fn new_region_var(&self, origin: RegionVariableOrigin<'tcx>) -> RegionVid

fn new_skolemized(&self, br: BoundRegion) -> Region

fn new_bound(&self, debruijn: DebruijnIndex) -> Region

fn add_given(&self, sub: FreeRegion, sup: RegionVid)

fn make_eqregion(&self, origin: SubregionOrigin<'tcx>, sub: Region, sup: Region)

fn make_subregion(&self, origin: SubregionOrigin<'tcx>, sub: Region, sup: Region)

fn verify_param_bound(&self, origin: SubregionOrigin<'tcx>, param_ty: ParamTy, sub: Region, sups: Vec<Region>)

fn lub_regions(&self, origin: SubregionOrigin<'tcx>, a: Region, b: Region) -> Region

fn glb_regions(&self, origin: SubregionOrigin<'tcx>, a: Region, b: Region) -> Region

fn resolve_var(&self, rid: RegionVid) -> Region

fn combine_vars(&self, t: CombineMapType, a: Region, b: Region, origin: SubregionOrigin<'tcx>, relate: |&RegionVarBindings<'a, 'tcx>, Region, Region|) -> Region

fn vars_created_since_mark(&self, mark: RegionMark) -> Vec<RegionVid>

fn tainted(&self, mark: RegionMark, r0: Region) -> Vec<Region>

Computes all regions that have been related to r0 in any way since the mark mark was made---r0 itself will be the first entry. This is used when checking whether skolemized regions are being improperly related to other regions.

fn resolve_regions(&self) -> Vec<RegionResolutionError<'tcx>>

This function performs the actual region resolution. It must be called after all constraints have been added. It performs a fixed-point iteration to find region values which satisfy all constraints, assuming such values can be found; if they cannot, errors are reported.