wiwi::num

Trait IntoI16

Source
pub trait IntoI16
where Self: Sealed,
{ // Required method fn into_i16(self) -> i16; }
Expand description

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

Required Methods§

Source

fn into_i16(self) -> i16

Convert into 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 IntoI16 for bool

Source§

fn into_i16(self) -> i16

Source§

impl IntoI16 for i8

Source§

fn into_i16(self) -> i16

Source§

impl IntoI16 for i16

Source§

fn into_i16(self) -> i16

Source§

impl IntoI16 for u8

Source§

fn into_i16(self) -> i16

Implementors§