wiwi::num

Trait FromU16

Source
pub trait FromU16
where Self: Sealed,
{ // Required method fn from_u16(value: u16) -> Self; }
Expand description

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

Required Methods§

Source

fn from_u16(value: u16) -> Self

Convert from 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 FromU16 for f32

Source§

fn from_u16(value: u16) -> f32

Source§

impl FromU16 for f64

Source§

fn from_u16(value: u16) -> f64

Source§

impl FromU16 for i32

Source§

fn from_u16(value: u16) -> i32

Source§

impl FromU16 for i64

Source§

fn from_u16(value: u16) -> i64

Source§

impl FromU16 for i128

Source§

fn from_u16(value: u16) -> i128

Source§

impl FromU16 for isize

Source§

fn from_u16(value: u16) -> isize

Source§

impl FromU16 for u16

Source§

fn from_u16(value: u16) -> u16

Source§

impl FromU16 for u32

Source§

fn from_u16(value: u16) -> u32

Source§

impl FromU16 for u64

Source§

fn from_u16(value: u16) -> u64

Source§

impl FromU16 for u128

Source§

fn from_u16(value: u16) -> u128

Source§

impl FromU16 for usize

Source§

fn from_u16(value: u16) -> usize

Implementors§