wiwi::num

Trait IntoUsize

Source
pub trait IntoUsize
where Self: Sealed,
{ // Required method fn into_usize(self) -> usize; }
Expand description

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

Required Methods§

Source

fn into_usize(self) -> usize

Convert into 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 IntoUsize for bool

Source§

impl IntoUsize for u8

Source§

impl IntoUsize for u16

Source§

impl IntoUsize for u32

Source§

impl IntoUsize for u64

Source§

impl IntoUsize for usize

Implementors§