pub(crate) fn into_iter(self) -> impl Iterator<Item = WherePredicate> {
        let for_lifetimes = self.for_lifetimes.into_iter().filter_map(|(lhs, rhs)| {
            let bounds = rhs.into_bounds();

            (!bounds.is_empty()).then(|| {
                WherePredicate::Lifetime(PredicateLifetime {
                    lifetime: lhs,
                    colon_token: <Token![:]>::default(),
                    bounds,
                })
            })
        });

        let for_types = self.for_types.into_iter().filter_map(|(lhs, rhs)| {
            let bounds = rhs.into_bounds();

            (!bounds.is_empty()).then(|| {
                WherePredicate::Type(PredicateType {
                    lifetimes: lhs.lifetimes,
                    bounded_ty: lhs.bounded_ty,
                    colon_token: <Token![:]>::default(),
                    bounds,
                })
            })
        });

        for_lifetimes.chain(for_types)
    }
/// Turns this set into an iterator of predicates
Turns this set into an iterator of predicates
Turns this set into an iterator of predicates
pub(crate) fn into_iter(self) -> impl Iterator<Item = WherePredicate> {
        let for_lifetimes = self.for_lifetimes.into_iter().filter_map(|(lhs, rhs)| {
            let bounds = rhs.into_bounds();
            (!bounds.is_empty()).then(|| {
                WherePredicate::Lifetime(PredicateLifetime {
                    lifetime: lhs,
                    colon_token: <Token![:]>::default(),
                    bounds,
                })
            })
        });
        let for_types = self.for_types.into_iter().filter_map(|(lhs, rhs)| {
            let bounds = rhs.into_bounds();
            (!bounds.is_empty()).then(|| {
                WherePredicate::Type(PredicateType {
                    lifetimes: lhs.lifetimes,
                    bounded_ty: lhs.bounded_ty,
                    colon_token: <Token![:]>::default(),
                    bounds,
                })
            })
        });
        for_lifetimes.chain(for_types)
    }
pub ( crate ) fn into_iter ( self ) -> impl Iterator < Item = WherePredicate > { let for_lifetimes = self . for_lifetimes . into_iter ( ) . filter_map ( | ( lhs , rhs ) | { let bounds = rhs . into_bounds ( ) ; ( ! bounds . is_empty ( ) ) . then ( | | { WherePredicate :: Lifetime ( PredicateLifetime { lifetime : lhs , colon_token : < Token ! [ ] > :: default ( ) , bounds , } ) } ) } ) ; let for_types = self . for_types . into_iter ( ) . filter_map ( | ( lhs , rhs ) | { let bounds = rhs . into_bounds ( ) ; ( ! bounds . is_empty ( ) ) . then ( | | { WherePredicate :: Type ( PredicateType { lifetimes : lhs . lifetimes , bounded_ty : lhs . bounded_ty , colon_token : < Token ! [ ] > :: default ( ) , bounds , } ) } ) } ) ; for_lifetimes . chain ( for_types ) }
Turns this set into an iterator of predicates
Turns this set into an iterator of predicates
self
self