Skip to main content

check_range

Function check_range 

Source
pub fn check_range(name: &str, value: f64, min: f64, max: f64) -> Result<()>
Expand description

value inside [min, max] (a NaN is outside every range), or an Error::OutOfRange naming the field and the range.

ยงErrors

Error::OutOfRange with the closed bounds min and max.