fn extract_pat_ident(pat: &Pat<'_>) -> Option<Ident>Expand description
Parse argument names and types from a local function’s HIR body.
Recursively unwrap Ref/Paren patterns to find the inner binding identifier.
Needed because &self / &mut self produce PatKind::Ref(PatKind::Binding(…)).