wiwi::num

Trait IntoU16

Source
pub trait IntoU16
where Self: Sealed,
{ // Required method fn into_u16(self) -> u16; }
Expand description

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

Required Methods§

Source

fn into_u16(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 IntoU16 for bool

Source§

fn into_u16(self) -> u16

Source§

impl IntoU16 for u8

Source§

fn into_u16(self) -> u16

Source§

impl IntoU16 for u16

Source§

fn into_u16(self) -> u16

Implementors§