pub fn walk_ptrs_ty_depth(ty: Ty<'_>) -> (Ty<'_>, usize)
Returns the base type for references and raw pointers, and count reference depth.