wiwi::num

Trait IntoU8

Source
pub trait IntoU8
where Self: Sealed,
{ // Required method fn into_u8(self) -> u8; }
Expand description

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

Required Methods§

Source

fn into_u8(self) -> u8

Convert into a u8 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 IntoU8 for bool

Source§

fn into_u8(self) -> u8

Source§

impl IntoU8 for u8

Source§

fn into_u8(self) -> u8

Implementors§