wiwi::num

Trait FromU32Lossy

Source
pub trait FromU32Lossy
where Self: Sealed,
{ // Required method fn from_u32_lossy(value: u32) -> Self; }
Expand description

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

Required Methods§

Source

fn from_u32_lossy(value: u32) -> Self

Convert from a u32 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 FromU32Lossy for f32

Source§

impl FromU32Lossy for f64

Source§

impl FromU32Lossy for i8

Source§

impl FromU32Lossy for i16

Source§

impl FromU32Lossy for i32

Source§

impl FromU32Lossy for i64

Source§

impl FromU32Lossy for i128

Source§

impl FromU32Lossy for isize

Source§

impl FromU32Lossy for u8

Source§

impl FromU32Lossy for u16

Source§

impl FromU32Lossy for u32

Source§

impl FromU32Lossy for u64

Source§

impl FromU32Lossy for u128

Source§

impl FromU32Lossy for usize

Implementors§