Crate math_interval

Source
Expand description

The goal of this module is to make checking whether a number is between two other numbers as easy as possible.

Structsยง

Interval
An Interval struct represents an interval. The main appeal is that it allows checking if a number is between the interval bounds more easily than manually writing the inequality comparisons yourself.