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

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

Required Methods§

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

Implementations on Foreign Types§

Implementors§

impl<Frac: LeEqU8> SaturatingMul for FixedI8<Frac>

impl<Frac: LeEqU16> SaturatingMul for FixedI16<Frac>

impl<Frac: LeEqU32> SaturatingMul for FixedI32<Frac>

impl<Frac: LeEqU64> SaturatingMul for FixedI64<Frac>

impl<Frac: LeEqU128> SaturatingMul for FixedI128<Frac>

impl<Frac: LeEqU8> SaturatingMul for FixedU8<Frac>

impl<Frac: LeEqU16> SaturatingMul for FixedU16<Frac>

impl<Frac: LeEqU32> SaturatingMul for FixedU32<Frac>

impl<Frac: LeEqU64> SaturatingMul for FixedU64<Frac>

impl<Frac: LeEqU128> SaturatingMul for FixedU128<Frac>