Skip to main content

is_upvar_in_closure

Function is_upvar_in_closure 

Source
pub fn is_upvar_in_closure(
    cx: &LateContext<'_>,
    closure: &Closure<'_>,
    local_id: HirId,
) -> bool
Expand description

Checks whether a local identified by local_id is captured as an upvar by the given closure.