Skip to main content

range

Function range 

Source
pub fn range(
    value: f64,
    min: Option<f64>,
    max: Option<f64>,
    path: &ValidationPath,
    out: &mut Violations,
)
Expand description

minimum / maximum for numbers, and the JSON-representability of the value.