Function rustc_hir_typeck::upvar::apply_capture_kind_on_capture_ty
source ยท fn apply_capture_kind_on_capture_ty<'tcx>(
tcx: TyCtxt<'tcx>,
ty: Ty<'tcx>,
capture_kind: UpvarCapture,
region: Region<'tcx>,
) -> Ty<'tcx>
Expand description
Returns a Ty that applies the specified capture kind on the provided capture Ty