Skip to content

Commit 2f6ab4a

Browse files
committed
feat(iter): More relevant name for set predicates
`set` was an implementaton detail of only some of these predicates that test against collections of data. The collections can be unordered, ordered, or hashed. This also opens the door for more `iter` predicates. BREAKING CHANGE: `predicates::set` -> `predicates::iter`.
1 parent 874b7c3 commit 2f6ab4a

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/set.rs renamed to src/iter.rs

File renamed without changes.

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pub use boxed::BoxPredicate;
102102
pub mod constant;
103103
pub mod function;
104104
pub mod ord;
105-
pub mod set;
105+
pub mod iter;
106106

107107
// combinators
108108
pub mod boolean;

src/prelude.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub mod predicate {
1616
pub use constant::{always, never};
1717
pub use function::function;
1818
pub use ord::{eq, ge, gt, le, lt, ne};
19-
pub use set::{contains, contains_hashable, contains_ord};
19+
pub use iter::{contains, contains_hashable, contains_ord};
2020

2121
/// `str` Predicate factories
2222
///

0 commit comments

Comments
 (0)