wiwi::num

Trait IntoU64

Source
pub trait IntoU64
where Self: Sealed,
{ // Required method fn into_u64(self) -> u64; }
Expand description

Trait for number types that can be converted into u64, losslessly

Required Methods§

Source

fn into_u64(self) -> u64

Convert into a u64 value

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.

Implementations on Foreign Types§

Source§

impl IntoU64 for bool

Source§

fn into_u64(self) -> u64

Source§

impl IntoU64 for u8

Source§

fn into_u64(self) -> u64

Source§

impl IntoU64 for u16

Source§

fn into_u64(self) -> u64

Source§

impl IntoU64 for u32

Source§

fn into_u64(self) -> u64

Source§

impl IntoU64 for u64

Source§

fn into_u64(self) -> u64

Source§

impl IntoU64 for usize

Source§

fn into_u64(self) -> u64

Implementors§