Trait CheckedMul

trait CheckedMul: Sized + Mul<Self, Output = Self>

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

Required Methods

fn checked_mul(self: &Self, v: &Self) -> Option<Self>

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

Implementors