wiwi::num

Trait IntoU16Lossy

Source
pub trait IntoU16Lossy
where 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§

Source

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.

Implementations on Foreign Types§

Source§

impl IntoU16Lossy for bool

Source§

impl IntoU16Lossy for f32

Source§

impl IntoU16Lossy for f64

Source§

impl IntoU16Lossy for i8

Source§

impl IntoU16Lossy for i16

Source§

impl IntoU16Lossy for i32

Source§

impl IntoU16Lossy for i64

Source§

impl IntoU16Lossy for i128

Source§

impl IntoU16Lossy for isize

Source§

impl IntoU16Lossy for u8

Source§

impl IntoU16Lossy for u16

Source§

impl IntoU16Lossy for u32

Source§

impl IntoU16Lossy for u64

Source§

impl IntoU16Lossy for u128

Source§

impl IntoU16Lossy for usize

Implementors§