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

#126 in Data structures

Download history 8758/week @ 2024-07-19 5892/week @ 2024-07-26 5938/week @ 2024-08-02 6120/week @ 2024-08-09 5075/week @ 2024-08-16 5769/week @ 2024-08-23 5459/week @ 2024-08-30 5412/week @ 2024-09-06 4363/week @ 2024-09-13 6022/week @ 2024-09-20 4434/week @ 2024-09-27 5130/week @ 2024-10-04 5645/week @ 2024-10-11 4726/week @ 2024-10-18 5334/week @ 2024-10-25 4725/week @ 2024-11-01

21,634 downloads per month
Used in 100 crates (8 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

~420KB