Expand description
§Ranges
This crate provides a generic alternative to core/std ranges, set-operations to work with them and a range set that can efficiently store them with the least amount of memory possible.
§Features
Fromimplementations for all core/std ranges- open ranges like
(3, 10] - support for
RangeBounds<T> - iterators (even for unbound ranges when the domain has a minimum)
Displayimplementations for single and set ranges (with format argument pass-through)- Operators like
|and^for their respective operation Domainimplementations for types likeboolandchar
Structs§
- Generic
Iterator - A stateful
Iteratorover aGenericRange<T>, yieldingT. - Generic
Range - A generic analog to core/std ranges.
- Ranges
- A range set storing
GenericRanges in the most memory-optimal fashion possible.
Enums§
- Arrangement
- This enum represents all possible arrangements of two
GenericRanges. - Operation
Result - Result of a unary or binary operation.
- Relation
- This enum represents all possible arrangements of two
GenericRanges. The original values were moved, possibly modified, and then stored.