Expand description
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.
Structs§
- Classify
- An iterator that interleaves two sorted, deduplicated iterators in sorted order and classifies each element according to its source.
- Classify
By - An iterator that interleaves two sorted, deduplicated iterators in sorted order and classifies each element according to its source, using a comparator function.
- Classify
ByKey - An iterator that interleaves two sorted, deduplicated iterators in sorted order and classifies each element according to its source, using a key extraction function.
Enums§
- Inclusion
- The sets an element is included in.
Functions§
- classify
- Interleave two sorted, deduplicated iterators in sorted order and classify each element according to its source.
- classify_
by - Interleave two sorted, deduplicated iterators in sorted order and classify each element according to its source, using a comparator function.
- classify_
by_ key - Interleave two sorted, deduplicated iterators in sorted order and classify each element according to its source, using a key extraction function.
- 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 inb
) represented by sorted, deduplicated iterators. - difference_
by - Take the difference of 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 - Take the intersection of 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 - Take the symmetric_difference of 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.