34 releases (6 stable)

1.4.1 Dec 15, 2023
1.4.0 Sep 20, 2021
1.3.0 Aug 22, 2018
1.2.0 Jul 1, 2018
0.4.8 Jun 25, 2015

#78 in Data structures

Download history 4209/week @ 2023-12-20 2746/week @ 2023-12-27 5409/week @ 2024-01-03 6857/week @ 2024-01-10 7950/week @ 2024-01-17 5104/week @ 2024-01-24 7311/week @ 2024-01-31 7175/week @ 2024-02-07 6367/week @ 2024-02-14 6087/week @ 2024-02-21 5889/week @ 2024-02-28 6084/week @ 2024-03-06 5502/week @ 2024-03-13 6780/week @ 2024-03-20 6139/week @ 2024-03-27 3758/week @ 2024-04-03

23,760 downloads per month
Used in 95 crates (9 directly)

MIT/Apache

100KB
2.5K SLoC

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

Contribution

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.

Dependencies

~400KB