pub fn path_to_local_id(expr: &Expr<'_>, id: HirId) -> bool
Expand description

Returns true if the expression is a path to a local with the specified HirId. Use this function to see if an expression matches a function argument or a match binding.