fn traits_implemented_by<'a>(
    cx: &mut DocContext<'a>,
    ty: Ty<'a>,
    module: DefId
) -> FxHashSet<DefId>
Expand description

Given a type, return all traits in scope in module implemented by that type.

NOTE: this cannot be a query because more traits could be available when more crates are compiled! So it is not stable to serialize cross-crate.