Function rustc_mir_build::build::expr::as_place::compute_capture_idx[][src]

fn compute_capture_idx<'tcx>(
    closure_min_captures: &RootVariableMinCaptureList<'tcx>,
    var_hir_id: HirId,
    root_var_idx: usize
) -> usize
Expand description

Computes the index of a capture within the desugared closure provided the closure’s closure_min_captures and the capture’s index of the capture in the ty::MinCaptureList of the root variable var_hir_id.