pub fn overflowing_mul_scalar<T>(lhs: &PrimitiveArray<T>, rhs: &T) -> (PrimitiveArray<T>, Bitmap)
where
    T: NativeType + OverflowingMul<Output = T>,
{
    let rhs = *rhs;
    let op = move |a: T| a.overflowing_mul(&rhs);

    unary_with_bitmap(lhs, op, lhs.data_type().clone())
}
/// Overflowing multiplication of a scalar T to a primitive array of type T. If
/// the result from the mul overflows for this type,
/// then the result will be an array with overflowed values and a validity
/// array indicating the overflowing elements from the array
///
/// # Examples
/// ```
/// use arrow2::compute::arithmetics::basic::overflowing_mul_scalar;
/// use arrow2::array::Int8Array;
///
/// let a = Int8Array::from(&[Some(1i8), Some(100i8)]);
/// let (result, overflow) = overflowing_mul_scalar(&a, &100i8);
/// let expected = Int8Array::from(&[Some(100i8), Some(16i8)]);
/// assert_eq!(result, expected);
/// ```
Overflowing multiplication of a scalar T to a primitive array of type T. If
the result from the mul overflows for this type,
then the result will be an array with overflowed values and a validity
array indicating the overflowing elements from the array
Overflowing multiplication of a scalar T to a primitive array of type T . If the result from the mul overflows for this type then the result will be an array with overflowed values and a validity array indicating the overflowing elements from the array
pub fn overflowing_mul_scalar<T>(lhs: &PrimitiveArray<T>, rhs: &T) -> (PrimitiveArray<T>, Bitmap)
where
    T: NativeType + OverflowingMul<Output = T>,
{
    let rhs = *rhs;
    let op = move |a: T| a.overflowing_mul(&rhs);
    unary_with_bitmap(lhs, op, lhs.data_type().clone())
}
pub fn overflowing_mul_scalar < T > ( lhs : & PrimitiveArray < T > , rhs : & T ) -> ( PrimitiveArray < T > , Bitmap ) where T : NativeType + OverflowingMul < Output = T > , { let rhs = * rhs ; let op = move | a : T | a . overflowing_mul ( & rhs ) ; unary_with_bitmap ( lhs , op , lhs . data_type ( ) . clone ( ) ) }
Overflowing multiplication of a scalar T to a primitive array of type T. If
the result from the mul overflows for this type,
then the result will be an array with overflowed values and a validity
array indicating the overflowing elements from the array
Overflowing multiplication of a scalar T to a primitive array of type T . If the result from the mul overflows for this type then the result will be an array with overflowed values and a validity array indicating the overflowing elements from the array
lhs
&PrimitiveArray<T>
rhs
&T
lhs
&PrimitiveArray<T>
rhs
&T
examples
```
use arrow2::compute::arithmetics::basic::overflowing_mul_scalar;
use arrow2::array::Int8Array.


` ` ` use arrow2 :: compute :: arithmetics :: basic :: overflowing_mul_scalar ; use arrow2 :: array :: Int8Array .