pub fn all_traits(tcx: TyCtxt<'_>) -> Vec<TraitInfo>
Expand description

Retrieves all traits in this crate and any dependent crates, and wraps them into TraitInfo for custom sorting.