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

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

Checked multiplication.

Required Associated Types§

source

type Output

Output type.

Required Methods§

source

fn checked_mul(&self, rhs: Rhs) -> CtOption<Self>

Perform checked multiplication, returning a CtOption which is_some only if the operation did not overflow.

Implementors§

source§

impl CheckedMul<Limb> for Limb

§

type Output = Limb

source§

impl<const LIMBS: usize> CheckedMul<&UInt<LIMBS>> for UInt<LIMBS>

§

type Output = UInt<LIMBS>