Function rustc_hir_typeck::method::suggest::all_traits

source ·
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.