range_traits/
lib.rs

1//! This library provides utility traits for data types that can be used
2//! to define ranges of values. Default implementations exists for
3//! primitive numeric types and `char`.
4//! The defined traits can help define basic tasks on ranges such as
5//! enumerating the elements of the range (`PartialEnum`),
6//! measure the size of the range (`Measure`), etc.
7//!
8//! Its primary use is through the [`btree-range-map`](https://crates.io/crates/btree-range-map) crate
9//! that define data-structures indexed by ranges.
10//! By implementing the traits defined in here, one can extend the type of
11//! ranges supported by `btree-range-map`, without necessarily depending on it.
12#![no_std]
13
14mod bounded;
15mod enumerable;
16mod measure;
17
18pub use bounded::*;
19pub use enumerable::*;
20pub use measure::*;