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 least significant half followed by the most significant.

Required Associated Types§

Source

type Output

Split output: low/high components of the value.

Provided Methods§

Source

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

Split this number in half, returning its low and high 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 U64

Source§

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

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 U1152

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U1280

Source§

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

Source§

impl Split for U1408

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U1536

Source§

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

Source§

impl Split for U1664

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U1792

Source§

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

Source§

impl Split for U1920

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U2048

Source§

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

Source§

impl Split for U2176

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U2304

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U2432

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U2560

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U2688

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U2816

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U2944

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U3072

Source§

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

Source§

impl Split for U3200

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U3328

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U3456

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U3584

Source§

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

Source§

impl Split for U3712

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U3840

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U3968

Available on crate feature extra-sizes only.
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 U4480

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U4608

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U4736

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U4864

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U4992

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U5120

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U5248

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U5376

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U5504

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U5632

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U5760

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U5888

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U6016

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U6144

Source§

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

Source§

impl Split for U6272

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U6400

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U6528

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U6656

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U6784

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U6912

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U7040

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U7168

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U7296

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U7424

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U7552

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U7680

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U7808

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U7936

Available on crate feature extra-sizes only.
Source§

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

Source§

impl Split for U8064

Available on crate feature extra-sizes only.
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 }>