#range #set #union #invert #operations #reduce #error

eater_rangeset

Simple library to work with set's of ranges

2 releases

0.1.1 Mar 29, 2023
0.1.0 Mar 29, 2023

#2039 in Rust patterns

21 downloads per month

MIT license

39KB
832 lines

Workflow Status Coverage Status

eater_rangeset

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

License: MIT


lib.rs:

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

Dependencies

~250KB