crypto_bigint::prelude

Trait 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.

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 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 }>