wiwi::num

Trait IntoUsizeLossy

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

Trait for number types that can be converted into usize, potentially lossily

Required Methods§

Source

fn into_usize_lossy(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 IntoUsizeLossy for bool

Source§

impl IntoUsizeLossy for f32

Source§

impl IntoUsizeLossy for f64

Source§

impl IntoUsizeLossy for i8

Source§

impl IntoUsizeLossy for i16

Source§

impl IntoUsizeLossy for i32

Source§

impl IntoUsizeLossy for i64

Source§

impl IntoUsizeLossy for i128

Source§

impl IntoUsizeLossy for isize

Source§

impl IntoUsizeLossy for u8

Source§

impl IntoUsizeLossy for u16

Source§

impl IntoUsizeLossy for u32

Source§

impl IntoUsizeLossy for u64

Source§

impl IntoUsizeLossy for u128

Source§

impl IntoUsizeLossy for usize

Implementors§