MCPcopy Create free account
hub / github.com/apache/arrow-rs / mul

Function mul

arrow-arith/src/numeric.rs:54–56  ·  view source on GitHub ↗

Perform `lhs * rhs`, returning an error on overflow

(lhs: &dyn Datum, rhs: &dyn Datum)

Source from the content-addressed store, hash-verified

52
53/// Perform `lhs * rhs`, returning an error on overflow
54pub fn mul(lhs: &dyn Datum, rhs: &dyn Datum) -> Result<ArrayRef, ArrowError> {
55 arithmetic_op(Op::Mul, lhs, rhs)
56}
57
58/// Perform `lhs * rhs`, wrapping on overflow for [`DataType::is_integer`]
59pub fn mul_wrapping(lhs: &dyn Datum, rhs: &dyn Datum) -> Result<ArrayRef, ArrowError> {

Callers 7

add_benchmarkFunction · 0.85
test_integerFunction · 0.85
test_floatFunction · 0.85
test_decimalFunction · 0.85
test_duration_implFunction · 0.85

Calls 1

arithmetic_opFunction · 0.85

Tested by 6

test_integerFunction · 0.68
test_floatFunction · 0.68
test_decimalFunction · 0.68
test_duration_implFunction · 0.68