Skip to main content

config_float_range

Function config_float_range 

Source
pub fn config_float_range(
    config: &[(String, Value)],
    key: &str,
    min: f64,
    max: f64,
) -> Option<f64>
Expand description

Reads a numeric config value, or None when absent or outside [min, max].