wiwi::num

Trait FromI32

Source
pub trait FromI32
where Self: Sealed,
{ // Required method fn from_i32(value: i32) -> Self; }
Expand description

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

Required Methods§

Source

fn from_i32(value: i32) -> Self

Convert from a i32 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 FromI32 for f64

Source§

fn from_i32(value: i32) -> f64

Source§

impl FromI32 for i32

Source§

fn from_i32(value: i32) -> i32

Source§

impl FromI32 for i64

Source§

fn from_i32(value: i32) -> i64

Source§

impl FromI32 for i128

Source§

fn from_i32(value: i32) -> i128

Source§

impl FromI32 for isize

Source§

fn from_i32(value: i32) -> isize

Implementors§