wiwi::num

Trait FromI8

Source
pub trait FromI8
where Self: Sealed,
{ // Required method fn from_i8(value: i8) -> Self; }
Expand description

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

Required Methods§

Source

fn from_i8(value: i8) -> Self

Convert from a i8 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 FromI8 for f32

Source§

fn from_i8(value: i8) -> f32

Source§

impl FromI8 for f64

Source§

fn from_i8(value: i8) -> f64

Source§

impl FromI8 for i8

Source§

fn from_i8(value: i8) -> i8

Source§

impl FromI8 for i16

Source§

fn from_i8(value: i8) -> i16

Source§

impl FromI8 for i32

Source§

fn from_i8(value: i8) -> i32

Source§

impl FromI8 for i64

Source§

fn from_i8(value: i8) -> i64

Source§

impl FromI8 for i128

Source§

fn from_i8(value: i8) -> i128

Source§

impl FromI8 for isize

Source§

fn from_i8(value: i8) -> isize

Implementors§