Trait num_traits::ops::saturating::SaturatingMul[][src]

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

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

Required methods

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 u8[src]

impl SaturatingMul for u16[src]

impl SaturatingMul for u32[src]

impl SaturatingMul for u64[src]

impl SaturatingMul for usize[src]

impl SaturatingMul for u128[src]

impl SaturatingMul for i8[src]

impl SaturatingMul for i16[src]

impl SaturatingMul for i32[src]

impl SaturatingMul for i64[src]

impl SaturatingMul for isize[src]

impl SaturatingMul for i128[src]

Loading content...

Implementors

Loading content...