Trait crypto_bigint::Split

source ·
pub trait Split: SplitMixed<Self::Output, Self::Output> {
    type Output;

    // Provided 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.

Provided Methods§

source

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

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Split for U128

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U256

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U384

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U512

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U640

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U768

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U896

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U1024

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U1280

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U1536

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U1792

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U2048

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U3072

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U3584

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U4096

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U4224

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U4352

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U6144

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U8192

§

type Output = Uint<{ <$name>::LIMBS / 2 }>

source§

impl Split for U16384

§

type Output = Uint<{ <$name>::LIMBS / 2 }>