fn strip_prefix<'tcx>(
    base_ty: Ty<'tcx>,
    projections: Vec<PlaceElem<'tcx>>,
    prefix_projections: &[HirProjection<'tcx>]
) -> impl Iterator<Item = PlaceElem<'tcx>>
Expand description

Returns projections remaining after stripping an initial prefix of HIR projections.

Supports only HIR projection kinds that represent a path that might be captured by a closure or a generator, i.e., an Index or a Subslice projection kinds are unsupported.