Expand description
A simple library with some boilerplate code to work with Range’s and RangeSet’s
Currently every set operation depends on a mix of RangeSet::union
and
RangeSet::invert
as those are the only 2 operations needed to implement
all other operations.
This also reduces surface for errors, as only 2 functions have to be proven correct.
This will change in the future
Macros§
- r
- Create a new range alike the range operator (
range
is an alias forr
) - range
- Create a new range alike the range operator (
range
is an alias forr
) - range_
set - Create a new range set based on given ranges
Structs§
Enums§
- Bound
- Re-export for ease An endpoint of a range of keys.
- Positional
Bound - A small wrapper around the std
Bound
enum, that stores if the boundary is the start or end boundary
Traits§
Type Aliases§
- Range
Vec - The list type used for storing multiple ranges in a set