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

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

Performs multiplication with a flag for overflow.

Required methods

fn overflowing_mul(&self, v: &Self) -> (Self, bool)[src]

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.

Loading content...

Implementations on Foreign Types

impl OverflowingMul for u8[src]

impl OverflowingMul for u16[src]

impl OverflowingMul for u32[src]

impl OverflowingMul for u64[src]

impl OverflowingMul for usize[src]

impl OverflowingMul for u128[src]

impl OverflowingMul for i8[src]

impl OverflowingMul for i16[src]

impl OverflowingMul for i32[src]

impl OverflowingMul for i64[src]

impl OverflowingMul for isize[src]

impl OverflowingMul for i128[src]

Loading content...

Implementors

Loading content...