wiwi::num

Trait FromU32

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

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

Required Methods§

Source

fn from_u32(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 FromU32 for f64

Source§

fn from_u32(value: u32) -> f64

Source§

impl FromU32 for i64

Source§

fn from_u32(value: u32) -> i64

Source§

impl FromU32 for i128

Source§

fn from_u32(value: u32) -> i128

Source§

impl FromU32 for isize

Source§

fn from_u32(value: u32) -> isize

Source§

impl FromU32 for u32

Source§

fn from_u32(value: u32) -> u32

Source§

impl FromU32 for u64

Source§

fn from_u32(value: u32) -> u64

Source§

impl FromU32 for u128

Source§

fn from_u32(value: u32) -> u128

Source§

impl FromU32 for usize

Source§

fn from_u32(value: u32) -> usize

Implementors§