div_bounds

Function div_bounds 

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

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