Skip to main content

ConcatenatingSquare

Trait ConcatenatingSquare 

Source
pub trait ConcatenatingSquare: Sized {
    type Output: Integer;

    // Required method
    fn concatenating_square(&self) -> Self::Output;
}
Expand description

Widening square: returns a value with a number of limbs equal to double the sum of the input.

Required Associated Types§

Source

type Output: Integer

Output of the widening multiplication.

Required Methods§

Source

fn concatenating_square(&self) -> Self::Output

Perform widening squaring.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<const LIMBS: usize, const WIDE_LIMBS: usize> ConcatenatingSquare for Uint<LIMBS>
where Self: Concat<LIMBS, Output = Uint<WIDE_LIMBS>>,

Source§

type Output = Uint<WIDE_LIMBS>