rangemap

Crate Docs Build status Build status Rust

RangeMap is a map data structure whose keys are stored as ranges. Contiguous and overlapping ranges that map to the same value are coalesced into a single range.

A corresponding RangeSet structure is also provided.