pub(crate) fn all_traits(tcx: TyCtxt<'_>) -> Vec<TraitInfo>
Retrieves all traits in this crate and any dependent crates, and wraps them into TraitInfo for custom sorting.
TraitInfo