pub fn deref_chain<'cx, 'tcx>( cx: &'cx LateContext<'tcx>, ty: Ty<'tcx>, ) -> impl Iterator<Item = Ty<'tcx>> + 'cx
Returns the deref chain of a type, starting with the type itself.