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

    // Required method
    fn widening_mul(&self, rhs: Rhs) -> Self::Output;
}
Expand description

Widening multiply: returns a value with a number of limbs equal to the sum of the inputs.

Required Associated Types§

source

type Output: Integer

Output of the widening multiplication.

Required Methods§

source

fn widening_mul(&self, rhs: Rhs) -> Self::Output

Perform widening multiplication.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl WideningMul for BoxedUint

Available on crate feature alloc only.
source§

impl WideningMul<&BoxedUint> for BoxedUint

Available on crate feature alloc only.
source§

impl<const LIMBS: usize, const RHS_LIMBS: usize, const WIDE_LIMBS: usize> WideningMul<&Uint<RHS_LIMBS>> for Uint<LIMBS>
where Uint<RHS_LIMBS>: ConcatMixed<Self, MixedOutput = Uint<WIDE_LIMBS>>,

§

type Output = <Uint<RHS_LIMBS> as ConcatMixed<Uint<LIMBS>>>::MixedOutput

source§

impl<const LIMBS: usize, const RHS_LIMBS: usize, const WIDE_LIMBS: usize> WideningMul<Uint<RHS_LIMBS>> for Uint<LIMBS>
where Uint<RHS_LIMBS>: ConcatMixed<Self, MixedOutput = Uint<WIDE_LIMBS>>,

§

type Output = <Uint<RHS_LIMBS> as ConcatMixed<Uint<LIMBS>>>::MixedOutput