pub fn peel_and_count_ty_refs(ty: Ty<'_>) -> (Ty<'_>, usize, Option<Mutability>)
Expand description
Peels off all references on the type. Returns the underlying type, the number of references removed, and, if there were any such references, whether the pointer is ultimately mutable or not.