Trait num_traits::ops::overflowing::OverflowingMul[][src]

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