rustc_type_ir::fold

Function fold_regions

Source
pub fn fold_regions<I: Interner, T>(
    cx: I,
    value: T,
    f: impl FnMut(I::Region, DebruijnIndex) -> I::Region,
) -> T
where T: TypeFoldable<I>,