pub fn collect_regions<'tcx,T>(tcx: &ty::ctxt<'tcx>,
                               value: &T,
                               region_set: &mut FnvHashSet<ty::Region>) -> bool
    where T : TypeFoldable<'tcx>
{
    let mut have_bound_regions = false;
    fold_regions(tcx, value, &mut have_bound_regions,
                 |r, d| { region_set.insert(r.from_depth(d)); r });
    have_bound_regions
}
/// Collects the free and escaping regions in `value` into `region_set`. Returns
/// whether any late-bound regions were skipped
Collects the free and escaping regions in `value` into `region_set`. Returns
whether any late-bound regions were skipped
Collects the free and escaping regions in ` value ` into ` region_set ` . Returns whether any late - bound regions were skipped
pub fn collect_regions<'tcx,T>(tcx: &ty::ctxt<'tcx>,
                               value: &T,
                               region_set: &mut FnvHashSet<ty::Region>) -> bool
    where T : TypeFoldable<'tcx>
{
    let mut have_bound_regions = false;
    fold_regions(tcx, value, &mut have_bound_regions,
                 |r, d| { region_set.insert(r.from_depth(d)); r });
    have_bound_regions
}
pub fn collect_regions < ' tcx , T > ( tcx : & ty :: ctxt < ' tcx > , value : & T , region_set : & mut FnvHashSet < ty :: Region > ) -> bool where T : TypeFoldable < ' tcx > { let mut have_bound_regions = false ; fold_regions ( tcx , value , & mut have_bound_regions , | r , d | { region_set . insert ( r . from_depth ( d ) ) ; r } ) ; have_bound_regions }
Collects the free and escaping regions in `value` into `region_set`.
Collects the free and escaping regions in ` value ` into ` region_set ` .
tcx
&ty::ctxt<'tcx>
value
&T
region_set
&mut FnvHashSet<ty::Region>
tcx
&ty::ctxt<'tcx>
value
&T
region_set
&mut FnvHashSet<ty::Region>