Trait rustc_trait_selection::infer::free_regions::FreeRegionRelations [−][src]
pub trait FreeRegionRelations<'tcx> {
fn sub_free_regions(
&self,
tcx: TyCtxt<'tcx>,
shorter: &'tcx RegionKind,
longer: &'tcx RegionKind
) -> bool;
}Expand description
The NLL region handling code represents free region relations in a slightly different way; this trait allows functions to be abstract over which version is in use.
Required methods
fn sub_free_regions(
&self,
tcx: TyCtxt<'tcx>,
shorter: &'tcx RegionKind,
longer: &'tcx RegionKind
) -> bool
fn sub_free_regions(
&self,
tcx: TyCtxt<'tcx>,
shorter: &'tcx RegionKind,
longer: &'tcx RegionKind
) -> boolTests whether r_a <= r_b. Both must be free regions or
'static.