Trait argmin::prelude::ops::overflowing::OverflowingMul[][src]

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

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.

Implementations on Foreign Types

impl OverflowingMul for i8[src]

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

impl OverflowingMul for usize[src]

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

impl OverflowingMul for u32[src]

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

impl OverflowingMul for u16[src]

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

impl OverflowingMul for i128[src]

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

impl OverflowingMul for u128[src]

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

impl OverflowingMul for i64[src]

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

impl OverflowingMul for isize[src]

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

impl OverflowingMul for u8[src]

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

impl OverflowingMul for i16[src]

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

impl OverflowingMul for u64[src]

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

impl OverflowingMul for i32[src]

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

Implementors