wiwi::num

Trait FromI16

Source
pub trait FromI16
where Self: Sealed,
{ // Required method fn from_i16(value: i16) -> Self; }
Expand description

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

Required Methods§

Source

fn from_i16(value: i16) -> Self

Convert from a i16 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 FromI16 for f32

Source§

fn from_i16(value: i16) -> f32

Source§

impl FromI16 for f64

Source§

fn from_i16(value: i16) -> f64

Source§

impl FromI16 for i16

Source§

fn from_i16(value: i16) -> i16

Source§

impl FromI16 for i32

Source§

fn from_i16(value: i16) -> i32

Source§

impl FromI16 for i64

Source§

fn from_i16(value: i16) -> i64

Source§

impl FromI16 for i128

Source§

fn from_i16(value: i16) -> i128

Source§

impl FromI16 for isize

Source§

fn from_i16(value: i16) -> isize

Implementors§