[][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; }
🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

Trait to convert an integer to/from smaller parts

Associated Types

type LowHalf: Int

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

type HighHalf: Int

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

Loading content...

Required methods

fn low(self) -> Self::LowHalf

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

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

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

fn high(self) -> Self::HighHalf

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

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

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

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

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

Loading content...

Implementors

impl LargeInt for i64[src]

type LowHalf = u32

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

type HighHalf = i32

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

impl LargeInt for i128[src]

type LowHalf = u64

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

type HighHalf = i64

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

impl LargeInt for u64[src]

type LowHalf = u32

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

type HighHalf = u32

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

impl LargeInt for u128[src]

type LowHalf = u64

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

type HighHalf = u64

🔬 This is a nightly-only experimental API. (compiler_builtins_lib)

Compiler builtins. Will never become stable.

Loading content...