Skip to main content

match_region_args

Function match_region_args 

Source
pub fn match_region_args<'tcx, T: Relate<TyCtxt<'tcx>>>(
    tcx: TyCtxt<'tcx>,
    template: T,
    actual: T,
) -> Result<FxHashMap<PlaceholderRegion<'tcx>, Region<'tcx>>, TypeError<'tcx>>
Expand description

Takes two values that differ only in their regions, where template has placeholder regions used each once in the places that they differ. Returns a mapping from those placeholders to the corresponding regions in actual.