CheckedMul

Trait CheckedMul 

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

    // Required method
    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

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

Implementors§