wiwi::num

Trait IntoU32

Source
pub trait IntoU32
where Self: Sealed,
{ // Required method fn into_u32(self) -> u32; }
Expand description

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

Required Methods§

Source

fn into_u32(self) -> u32

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

Source§

fn into_u32(self) -> u32

Source§

impl IntoU32 for u8

Source§

fn into_u32(self) -> u32

Source§

impl IntoU32 for u16

Source§

fn into_u32(self) -> u32

Source§

impl IntoU32 for u32

Source§

fn into_u32(self) -> u32

Implementors§