Trait bonsaidb::core::num_traits::ops::overflowing::OverflowingMul
source · pub trait OverflowingMul: Sized + Mul<Output = Self> {
// Required method
fn overflowing_mul(&self, v: &Self) -> (Self, bool);
}
Expand description
Performs multiplication with a flag for overflow.
Required Methods§
sourcefn overflowing_mul(&self, v: &Self) -> (Self, bool)
fn overflowing_mul(&self, v: &Self) -> (Self, bool)
Returns a tuple of the product along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then the wrapped value is returned.
Object Safety§
This trait is not object safe.