Trait CheckedMul

Source
pub trait CheckedMul<Rhs = Self> {
    type Output;

    // Required method
    const fn checked_mul(self, rhs: Rhs) -> Option<Self::Output>;
}
Expand description

✅ Checked multiplication. Returns None if the result overflows.

§Panics

This function never panics.

Required Associated Types§

Required Methods§

Source

const fn checked_mul(self, rhs: Rhs) -> Option<Self::Output>

Implementors§