[][src]Trait int_conv::split::Split

pub trait Split: Sized {
    type Hi;
    type Lo;
    fn hi(self) -> Self::Hi;
fn lo(self) -> Self::Lo;
fn lo_hi(self) -> (Self::Lo, Self::Hi); }

Splits an integer into it's low and high part

Associated Types

type Hi

Output type for higher part

type Lo

Output type for lower part

Loading content...

Required methods

fn hi(self) -> Self::Hi

Returns the high part of this integer

fn lo(self) -> Self::Lo

Returns the low part of this integer

fn lo_hi(self) -> (Self::Lo, Self::Hi)

Returns the low and high part of this integer

Loading content...

Implementors

impl Split for u16[src]

type Hi = u8

type Lo = u8

impl Split for u32[src]

type Hi = u16

type Lo = u16

impl Split for u64[src]

type Hi = u32

type Lo = u32

impl Split for u128[src]

type Hi = u64

type Lo = u64

Loading content...