pub trait OverflowingMul: Sized + Mul<Self, Output = Self> {
    fn overflowing_mul(&self, v: &Self) -> (Self, bool);
}
Expand description

Performs multiplication with a flag for overflow.

Required Methods§

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.

Implementations on Foreign Types§

Implementors§

impl<Frac: LeEqU8> OverflowingMul for FixedI8<Frac>

impl<Frac: LeEqU16> OverflowingMul for FixedI16<Frac>

impl<Frac: LeEqU32> OverflowingMul for FixedI32<Frac>

impl<Frac: LeEqU64> OverflowingMul for FixedI64<Frac>

impl<Frac: LeEqU128> OverflowingMul for FixedI128<Frac>

impl<Frac: LeEqU8> OverflowingMul for FixedU8<Frac>

impl<Frac: LeEqU16> OverflowingMul for FixedU16<Frac>

impl<Frac: LeEqU32> OverflowingMul for FixedU32<Frac>

impl<Frac: LeEqU64> OverflowingMul for FixedU64<Frac>

impl<Frac: LeEqU128> OverflowingMul for FixedU128<Frac>