Skip to main content

clamp

Function clamp 

Source
pub fn clamp(
    x: &Analytic,
    lo: &Value,
    hi: &Value,
    budget: &mut Budget,
) -> OpResult<Value>
Expand description

clamp(x, lo, hi) with numbers for bounds, which the caller has checked are in order. It’s an int if x and the bounds are.