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

#7 in #datatype

Download history 596/week @ 2024-08-01 762/week @ 2024-08-08 646/week @ 2024-08-15 903/week @ 2024-08-22 1091/week @ 2024-08-29 1162/week @ 2024-09-05 846/week @ 2024-09-12 1200/week @ 2024-09-19 1266/week @ 2024-09-26 1236/week @ 2024-10-03 1763/week @ 2024-10-10 1160/week @ 2024-10-17 1098/week @ 2024-10-24 1258/week @ 2024-10-31 1017/week @ 2024-11-07 1098/week @ 2024-11-14

4,808 downloads per month
Used in 84 crates (2 directly)

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