Trait ndarray_rand::rand_distr::num_traits::SaturatingMul[][src]

pub trait SaturatingMul: Mul<Self, Output = Self> {
    pub fn saturating_mul(&self, v: &Self) -> Self;
}

Performs multiplication that saturates at the numeric bounds instead of overflowing.

Required methods

pub fn saturating_mul(&self, v: &Self) -> Self[src]

Saturating multiplication. Computes self * other, saturating at the relevant high or low boundary of the type.

Loading content...

Implementations on Foreign Types

impl SaturatingMul for u128[src]

impl SaturatingMul for usize[src]

impl SaturatingMul for u16[src]

impl SaturatingMul for i16[src]

impl SaturatingMul for u8[src]

impl SaturatingMul for i8[src]

impl SaturatingMul for u64[src]

impl SaturatingMul for isize[src]

impl SaturatingMul for i64[src]

impl SaturatingMul for i128[src]

impl SaturatingMul for i32[src]

impl SaturatingMul for u32[src]

Loading content...

Implementors

Loading content...