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

Performs multiplication that returns None instead of wrapping around on underflow or overflow.

Required Methods§

Multiplies two numbers, checking for underflow or overflow. If underflow or overflow happens, None is returned.

Implementations on Foreign Types§

Implementors§

Note

CheckedMul will never fail for PerThings.

Note

CheckedMul will never fail for PerThings.

Note

CheckedMul will never fail for PerThings.

Note

CheckedMul will never fail for PerThings.

Note

CheckedMul will never fail for PerThings.