sub_bounds

Function sub_bounds 

Source
fn sub_bounds<const UPPER: bool>(
    dt: &DataType,
    lhs: &ScalarValue,
    rhs: &ScalarValue,
) -> ScalarValue
Expand description

Helper function used for subtracting the end-point values of intervals.

Caution: This function contains multiple calls to unwrap(), and may return non-standardized interval bounds. Therefore, it should be used with caution. Currently, it is used in contexts where the DataType (dt) is validated prior to calling this function, and the following interval creation is standardized with Interval::new.