Skip to main content

get_enclosing_closure

Function get_enclosing_closure 

Source
pub fn get_enclosing_closure<'tcx>(
    cx: &LateContext<'tcx>,
    hir_id: HirId,
) -> Option<&'tcx Closure<'tcx>>
Expand description

Returns the Closure enclosing hir_id, if any.