pub trait CheckedMul<Rhs = Self>: Sized {
// Required method
fn checked_mul(&self, rhs: &Rhs) -> CtOption<Self>;
}
Expand description
Checked multiplication.
Required Methods§
sourcefn checked_mul(&self, rhs: &Rhs) -> CtOption<Self>
fn checked_mul(&self, rhs: &Rhs) -> CtOption<Self>
Perform checked multiplication, returning a CtOption
which is_some
only if the operation did not overflow.
Object Safety§
This trait is not object safe.
Implementors§
impl CheckedMul for BoxedUint
Available on crate feature
alloc
only.