Function rustc_middle::traits::util::supertraits_for_pretty_printing
source · pub fn supertraits_for_pretty_printing<'tcx>(
tcx: TyCtxt<'tcx>,
trait_ref: PolyTraitRef<'tcx>
) -> impl Iterator<Item = PolyTraitRef<'tcx>>
Expand description
Like super_predicates_for_pretty_printing
, except it only returns traits and filters out
all other Clause
s.