add_bounds

Function add_bounds 

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

Helper function used for adding 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.