clippy_utils::ty

Function all_predicates_of

Source
pub fn all_predicates_of(
    tcx: TyCtxt<'_>,
    id: DefId,
) -> impl Iterator<Item = &(Clause<'_>, Span)>
Expand description

Gets an iterator over all predicates which apply to the given item.