msr::util
pub fn limit(min: Option<f64>, max: Option<f64>, value: f64) -> f64
Limit a value by minimum and maximum values.