crypto_bigint::prelude

Trait Concat

Source
pub trait Concat<Rhs = Self> {
    type Output;

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

Concatenate two numbers into a “wide” twice-width value, using the rhs value as the least significant value.

Required Associated Types§

Source

type Output

Concatenated output: twice the width of Self.

Required Methods§

Source

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

Concatenate the two values, with self as most significant and rhs as the least significant.

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 Concat for U64

Source§

type Output = UInt<{nlimbs!($bits) * 2}>

Source§

impl Concat for U128

Source§

type Output = UInt<{nlimbs!($bits) * 2}>

Source§

impl Concat for U192

Source§

type Output = UInt<{nlimbs!($bits) * 2}>

Source§

impl Concat for U256

Source§

type Output = UInt<{nlimbs!($bits) * 2}>

Source§

impl Concat for U384

Source§

type Output = UInt<{nlimbs!($bits) * 2}>

Source§

impl Concat for U448

Source§

type Output = UInt<{nlimbs!($bits) * 2}>

Source§

impl Concat for U512

Source§

type Output = UInt<{nlimbs!($bits) * 2}>

Source§

impl Concat for U768

Source§

type Output = UInt<{nlimbs!($bits) * 2}>

Source§

impl Concat for U896

Source§

type Output = UInt<{nlimbs!($bits) * 2}>

Source§

impl Concat for U1024

Source§

type Output = UInt<{nlimbs!($bits) * 2}>

Source§

impl Concat for U1536

Source§

type Output = UInt<{nlimbs!($bits) * 2}>

Source§

impl Concat for U1792

Source§

type Output = UInt<{nlimbs!($bits) * 2}>

Source§

impl Concat for U2048

Source§

type Output = UInt<{nlimbs!($bits) * 2}>

Source§

impl Concat for U3072

Source§

type Output = UInt<{nlimbs!($bits) * 2}>

Source§

impl Concat for U4096

Source§

type Output = UInt<{nlimbs!($bits) * 2}>