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

source§

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

source§

impl Split for U256

source§

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

source§

impl Split for U384

source§

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

source§

impl Split for U512

source§

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

source§

impl Split for U640

source§

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

source§

impl Split for U768

source§

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

source§

impl Split for U896

source§

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

source§

impl Split for U1024

source§

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

source§

impl Split for U1280

source§

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

source§

impl Split for U1536

source§

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

source§

impl Split for U1792

source§

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

source§

impl Split for U2048

source§

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

source§

impl Split for U3072

source§

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

source§

impl Split for U3584

source§

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

source§

impl Split for U4096

source§

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

source§

impl Split for U4224

source§

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

source§

impl Split for U4352

source§

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

source§

impl Split for U6144

source§

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

source§

impl Split for U8192

source§

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

source§

impl Split for U16384

source§

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