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
From
implementations 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)
Display
implementations for single and set ranges (with format argument pass-through)- Operators like
|
and^
for their respective operation Domain
implementations for types likebool
andchar
Structs§
- Generic
Iterator - A stateful
Iterator
over aGenericRange<T>
, yieldingT
. - Generic
Range - A generic analog to core/std ranges.
- Ranges
- A range set storing
GenericRange
s in the most memory-optimal fashion possible.
Enums§
- Arrangement
- This enum represents all possible arrangements of two
GenericRange
s. - Operation
Result - Result of a unary or binary operation.
- Relation
- This enum represents all possible arrangements of two
GenericRange
s. The original values were moved, possibly modified, and then stored.