[][src]Trait compiler_builtins::int::LargeInt

pub trait LargeInt: Int {
    type LowHalf: Int;
    type HighHalf: Int;
    fn low(self) -> Self::LowHalf;
fn low_as_high(low: Self::LowHalf) -> Self::HighHalf;
fn high(self) -> Self::HighHalf;
fn high_as_low(low: Self::HighHalf) -> Self::LowHalf;
fn from_parts(low: Self::LowHalf, high: Self::HighHalf) -> Self; }

Trait to convert an integer to/from smaller parts

Associated Types

type LowHalf: Int

type HighHalf: Int

Loading content...

Required methods

fn low(self) -> Self::LowHalf

fn low_as_high(low: Self::LowHalf) -> Self::HighHalf

fn high(self) -> Self::HighHalf

fn high_as_low(low: Self::HighHalf) -> Self::LowHalf

fn from_parts(low: Self::LowHalf, high: Self::HighHalf) -> Self

Loading content...

Implementors

impl LargeInt for i64[src]

type LowHalf = u32

type HighHalf = i32

impl LargeInt for i128[src]

type LowHalf = u64

type HighHalf = i64

impl LargeInt for u64[src]

type LowHalf = u32

type HighHalf = u32

impl LargeInt for u128[src]

type LowHalf = u64

type HighHalf = u64

Loading content...