This crate provides the RangeSet type which stores a collection of values as sorted disjoint ranges.
RangeSet