wiwi::num

Trait FromU64

Source
pub trait FromU64
where Self: Sealed,
{ // Required method fn from_u64(value: u64) -> Self; }
Expand description

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

Required Methods§

Source

fn from_u64(value: u64) -> Self

Convert from 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 FromU64 for i128

Source§

fn from_u64(value: u64) -> i128

Source§

impl FromU64 for u64

Source§

fn from_u64(value: u64) -> u64

Source§

impl FromU64 for u128

Source§

fn from_u64(value: u64) -> u128

Source§

impl FromU64 for usize

Source§

fn from_u64(value: u64) -> usize

Implementors§