pub fn peel_middle_ty_refs(ty: Ty<'_>) -> (Ty<'_>, usize)
Peels off all references on the type. Returns the underlying type and the number of references removed.