Function clippy_utils::peel_hir_ty_refs
source ยท pub fn peel_hir_ty_refs<'a>(ty: &'a Ty<'a>) -> (&'a Ty<'a>, usize)
Expand description
Peels off all references on the type. Returns the underlying type and the number of references removed.