ToU32

Trait ToU32 

Source
pub trait ToU32:
    Sized
    + TryInto<u32>
    + TryInto<i128>
    + Copy {
    // Provided method
    fn u32(self) -> Result<u32, MathError> { ... }
}

Provided Methods§

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 ToU32 for i16

Source§

impl ToU32 for i32

Source§

impl ToU32 for i64

Source§

impl ToU32 for u8

Source§

impl ToU32 for u16

Source§

impl ToU32 for u32

Source§

impl ToU32 for u64

Source§

impl ToU32 for usize

Implementors§