fn apply_capture_kind_on_capture_ty<'tcx>(
    tcx: TyCtxt<'tcx>,
    ty: Ty<'tcx>,
    capture_kind: UpvarCapture,
    region: Option<Region<'tcx>>
) -> Ty<'tcx>
Expand description

Returns a Ty that applies the specified capture kind on the provided capture Ty