Range Tree

Data type for storing non-overlapping scalar ranges. The underlying representation is a red-black tree for fast manipulation.

Usage

This may be used for tracking free ID's or ranges.

Ranges are typically integers however generic types are used, so any type with a One and Zero trait (along with addition and subtraction support) may be used.

Further Work

While the API is complete on a basic level, there are some additions that could be useful.

Ports

This API also has ports written for:

License

Apache 2.0, see LICENSE file.