wiwi::num

Trait FromUsizeLossy

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

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

Required Methods§

Source

fn from_usize_lossy(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 FromUsizeLossy for f32

Source§

impl FromUsizeLossy for f64

Source§

impl FromUsizeLossy for i8

Source§

impl FromUsizeLossy for i16

Source§

impl FromUsizeLossy for i32

Source§

impl FromUsizeLossy for i64

Source§

impl FromUsizeLossy for i128

Source§

impl FromUsizeLossy for isize

Source§

impl FromUsizeLossy for u8

Source§

impl FromUsizeLossy for u16

Source§

impl FromUsizeLossy for u32

Source§

impl FromUsizeLossy for u64

Source§

impl FromUsizeLossy for u128

Source§

impl FromUsizeLossy for usize

Implementors§