5 unstable releases

0.3.2 Oct 5, 2023
0.3.1 Jul 1, 2023
0.3.0 May 13, 2022
0.2.1 Jul 1, 2023
0.1.0 May 12, 2022

#1718 in Data structures

Download history 459/week @ 2024-07-23 664/week @ 2024-07-30 602/week @ 2024-08-06 736/week @ 2024-08-13 720/week @ 2024-08-20 1234/week @ 2024-08-27 1001/week @ 2024-09-03 998/week @ 2024-09-10 929/week @ 2024-09-17 1399/week @ 2024-09-24 991/week @ 2024-10-01 1942/week @ 2024-10-08 1167/week @ 2024-10-15 1157/week @ 2024-10-22 1103/week @ 2024-10-29 1139/week @ 2024-11-05

4,890 downloads per month
Used in 81 crates (via btree-range-map)

MIT/Apache

17KB
415 lines

Range traits

Build Crate informations License Documentation

This library provides utility traits for data types that can be used to define ranges of values. Default implementations exists for primitive numeric types and char. The defined traits can help define basic tasks on ranges such as enumerating the elements of the range (PartialEnum), measure the size of the range (Measure), etc.

Its primary use is through the btree-range-map crate that define data-structures indexed by ranges. By implementing the traits defined in here, one can extend the type of ranges supported by btree-range-map, without necessarily depending on it.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~47KB