wiwi::num

Trait FromUsize

Source
pub trait FromUsize
where Self: Sealed,
{ // Required method fn from_usize(value: usize) -> Self; }
Expand description

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

Required Methods§

Source

fn from_usize(value: usize) -> Self

Convert from a usize 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 FromUsize for i128

Source§

impl FromUsize for u64

Source§

impl FromUsize for u128

Source§

impl FromUsize for usize

Implementors§