Function clippy_utils::peel_hir_pat_refs
source · pub fn peel_hir_pat_refs<'a>(pat: &'a Pat<'a>) -> (&'a Pat<'a>, usize)
Expand description
Peels off all references on the pattern. Returns the underlying pattern and the number of references removed.