range-traits

Crates.iorange-traits
lib.rsrange-traits
version0.3.2
sourcesrc
created_at2022-05-12 13:44:43.518488
updated_at2023-10-05 12:46:46.005736
descriptionRanges related traits.
homepage
repositoryhttps://github.com/timothee-haudebourg/range-traits
max_upload_size
id585218
size17,887
Timothée Haudebourg (timothee-haudebourg)

documentation

https://docs.rs/range-traits

README

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.

Commit count: 16

cargo fmt