Function rustc_hir_analysis::check::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: Option<Region<'tcx>>
) -> Ty<'tcx>
Expand description
Returns a Ty that applies the specified capture kind on the provided capture Ty