Crate iter_set[][src]

This crate provides set operations on sorted, deduplicated iterators. Unless otherwise specified, all iterator parameters in this crate should yield elements in ascending order with consecutive repeated elements removed. If this is upheld, then all iterators returned by this crate will share those properties.

Functions

cmp

Compare two sets represented by sorted, deduplicated iterators.

cmp_by

Compare two sets represented by sorted, deduplicated iterators, using a comparator function.

cmp_by_key

Compare two sets represented by sorted, deduplicated iterators, using a key extraction function.

difference

Take the difference of two sets (elements in a but not in b) represented by sorted, deduplicated iterators.

difference_by

Compare two sets represented by sorted, deduplicated iterators, using a comparator function.

difference_by_key

Take the difference of two sets represented by sorted, deduplicated iterators, using a key extraction function.

intersection

Take the intersection of two sets represented by sorted, deduplicated iterators.

intersection_by

Compare two sets represented by sorted, deduplicated iterators, using a comparator function.

intersection_by_key

Take the intersection of two sets represented by sorted, deduplicated iterators, using a key extraction function.

symmetric_difference

Take the symmetric_difference of two sets represented by sorted, deduplicated iterators.

symmetric_difference_by

Compare two sets represented by sorted, deduplicated iterators, using a comparator function.

symmetric_difference_by_key

Take the symmetric_difference of two sets represented by sorted, deduplicated iterators, using a key extraction function.

union

Take the union of two sets represented by sorted, deduplicated iterators.

union_by

Take the union of two sets represented by sorted, deduplicated iterators, using a comparator function.

union_by_key

Take the union of two sets represented by sorted, deduplicated iterators, using a key extraction function.