rustc_hir_typeck::method::suggest

Function all_traits

Source
pub(crate) 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.