Skip to main content

check_range

Function check_range 

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

Assert that value lies in [min, max], returning Err(Error::OutOfRange) if it does not.