pub trait IntoU8Lossywhere
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§
Sourcefn into_u8_lossy(self) -> u8
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.