pub fn clamp_number(
value: Option<&Value>,
min: Option<&Value>,
max: Option<&Value>,
) -> f64Expand description
clamp: the value as a number held inside [min, max]; a missing bound
(undefined or null) does not clamp; min wins when max < min.