crypto_bigint

Trait Split

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

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

Split a number in half, returning the most significant half followed by the least significant.

Required Associated Types§

Source

type Output

Split output: high/low components of the value.

Required Methods§

Source

fn split(&self) -> (Self::Output, Self::Output)

Split this number in half, returning its high and low components respectively.

Implementors§

Source§

impl Split for U128

Source§

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

Source§

impl Split for U192

Source§

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

Source§

impl Split for U256

Source§

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

Source§

impl Split for U384

Source§

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

Source§

impl Split for U448

Source§

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

Source§

impl Split for U512

Source§

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

Source§

impl Split for U768

Source§

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

Source§

impl Split for U896

Source§

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

Source§

impl Split for U1024

Source§

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

Source§

impl Split for U1536

Source§

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

Source§

impl Split for U1792

Source§

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

Source§

impl Split for U2048

Source§

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

Source§

impl Split for U3072

Source§

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

Source§

impl Split for U3584

Source§

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

Source§

impl Split for U4096

Source§

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

Source§

impl Split for U6144

Source§

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

Source§

impl Split for U8192

Source§

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