pub trait IntoU16Lossywhere
Self: Sealed,{
// Required method
fn into_u16_lossy(self) -> u16;
}
Expand description
Trait for number types that can be converted into u16
, potentially lossily
Required Methods§
Sourcefn into_u16_lossy(self) -> u16
fn into_u16_lossy(self) -> u16
Convert into a u16
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.