wiwi::num

Trait IntoU8Lossy

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

Trait for number types that can be converted into u8, potentially lossily

Required Methods§

Source

fn into_u8_lossy(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 IntoU8Lossy for bool

Source§

impl IntoU8Lossy for f32

Source§

impl IntoU8Lossy for f64

Source§

impl IntoU8Lossy for i8

Source§

impl IntoU8Lossy for i16

Source§

impl IntoU8Lossy for i32

Source§

impl IntoU8Lossy for i64

Source§

impl IntoU8Lossy for i128

Source§

impl IntoU8Lossy for isize

Source§

impl IntoU8Lossy for u8

Source§

impl IntoU8Lossy for u16

Source§

impl IntoU8Lossy for u32

Source§

impl IntoU8Lossy for u64

Source§

impl IntoU8Lossy for u128

Source§

impl IntoU8Lossy for usize

Implementors§