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