#interval #bounds #window #algebra

intervals

A generic interval type with support for open/closed bounds

6 stable releases

Uses old Rust 2015

2.1.0 Feb 21, 2023
2.0.2 Feb 18, 2023
2.0.1 Feb 11, 2023
1.0.1 Sep 25, 2022

#675 in Math

Download history 116/week @ 2024-06-10 1/week @ 2024-06-17 88/week @ 2024-07-01 16/week @ 2024-07-29 65/week @ 2024-09-23

65 downloads per month

Custom license

76KB
1.5K SLoC

intervals (api)

Crates.io

Overview

Generalised types for intervals and partitions thereof.

intervals is oriented towards static-typing. The bounds are all unique types, all operations between instances are exhaustively implemented, and formatting is provided for ease-of-use.

Installation

[dependencies]
intervals = "2.1"

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate and adhere to the angularjs commit message conventions (see here).

License

MIT


lib.rs:

Generalised types for intervals and partitions thereof.

intervals is oriented towards static-typing. The bounds are all unique types, all operations between instances are exhaustively implemented, and formatting is provided for ease-of-use.

Dependencies

~94–315KB