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.