Function rustc_typeck::check::upvar::apply_capture_kind_on_capture_ty[][src]

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

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