pub fn wrapping_mul<T>(
    lhs: &PrimitiveArray<T>,
    rhs: &PrimitiveArray<T>,
) -> Result<PrimitiveArray<T>>
where
    T: NativeType + WrappingMul<Output = T>,
{
    check_same_type(lhs, rhs)?;

    let op = move |a: T, b: T| a.wrapping_mul(&b);

    binary(lhs, rhs, lhs.data_type().clone(), op)
}
/// Wrapping multiplication of two [`PrimitiveArray`]s.
///  It wraps around at the boundary of the type if the result overflows.
///
/// # Examples
/// ```
/// use arrow2::compute::arithmetics::basic::wrapping_mul;
/// use arrow2::array::PrimitiveArray;
///
/// let a = PrimitiveArray::from([Some(100i8), Some(0x10i8), Some(100i8)]);
/// let b = PrimitiveArray::from([Some(0i8), Some(0x10i8), Some(0i8)]);
/// let result = wrapping_mul(&a, &b).unwrap();
/// let expected = PrimitiveArray::from([Some(0), Some(0), Some(0)]);
/// assert_eq!(result, expected);
/// ```
Wrapping multiplication of two [`PrimitiveArray`]s.
It wraps around at the boundary of the type if the result overflows.
Wrapping multiplication of two [ ` PrimitiveArray ` ] s . It wraps around at the boundary of the type if the result overflows .
pub fn wrapping_mul<T>(
    lhs: &PrimitiveArray<T>,
    rhs: &PrimitiveArray<T>,
) -> Result<PrimitiveArray<T>>
where
    T: NativeType + WrappingMul<Output = T>,
{
    check_same_type(lhs, rhs)?;
    let op = move |a: T, b: T| a.wrapping_mul(&b);
    binary(lhs, rhs, lhs.data_type().clone(), op)
}
pub fn wrapping_mul < T > ( lhs : & PrimitiveArray < T > , rhs : & PrimitiveArray < T > , ) -> Result < PrimitiveArray < T > > where T : NativeType + WrappingMul < Output = T > , { check_same_type ( lhs , rhs ) ? ; let op = move | a : T , b : T | a . wrapping_mul ( & b ) ; binary ( lhs , rhs , lhs . data_type ( ) . clone ( ) , op ) }
Wrapping multiplication of two [`PrimitiveArray`]s.
It wraps around at the boundary of the type if the result overflows.
Wrapping multiplication of two [ ` PrimitiveArray ` ] s . It wraps around at the boundary of the type if the result overflows .
lhs
&PrimitiveArray<T>
rhs
&PrimitiveArray<T>
lhs
&PrimitiveArray<T>
rhs
&PrimitiveArray<T>
examples
```
use arrow2::compute::arithmetics::basic::wrapping_mul;
use arrow2::array::PrimitiveArray.


` ` ` use arrow2 :: compute :: arithmetics :: basic :: wrapping_mul ; use arrow2 :: array :: PrimitiveArray .