intervallum

Crates.iointervallum
lib.rsintervallum
version1.4.4
created_at2015-04-05 18:19:19.045957+00
updated_at2025-05-15 14:20:38.576842+00
descriptionGeneric interval and interval set library.
homepage
repositoryhttps://github.com/ptal/intervallum
max_upload_size
id1779
size205,111
Pierre Talbot (ptal)

documentation

https://docs.rs/intervallum/1.4.4/interval/

README

Interval Arithmetic Library

Build Status

Intervallum is a library for computing over arithmetic intervals which compiles on Rust stable. We provide many set operations such as union and intersection. The intervals can be represented with the Interval type which is just a pair of integers (such as (0,10), representing a value in the range 0 to 10), and with a IntervalSet which is a vector of intervals (such as [(0,10), (15,20)] for all values between 0 and 10, and between 15 and 20).

This library is usable, thoroughly tested and documented, however it only works on integers (i8-i64, u8-u64, usize and isize). Examples and more in the documentation.

License

Licensed under either of

Contributing

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

To ensure consistency with formatting and linting, please, install pre-commit:

pip install pre-commit
pre-commit install
Commit count: 166

cargo fmt