ToU8

Trait ToU8 

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

Provided Methods§

Source

fn u8(self) -> Result<u8, MathError>

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

Source§

impl ToU8 for i32

Source§

impl ToU8 for i64

Source§

impl ToU8 for u8

Source§

impl ToU8 for u16

Source§

impl ToU8 for u32

Source§

impl ToU8 for u64

Source§

impl ToU8 for usize

Implementors§