Trait WideningMul

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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 Self: ConcatMixed<Uint<RHS_LIMBS>, MixedOutput = Uint<WIDE_LIMBS>>,

Source§

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

Source§

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

Source§

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