wiwi::num

Trait FromF32

Source
pub trait FromF32
where Self: Sealed,
{ // Required method fn from_f32(value: f32) -> Self; }
Expand description

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

Required Methods§

Source

fn from_f32(value: f32) -> Self

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

Source§

fn from_f32(value: f32) -> f32

Source§

impl FromF32 for f64

Source§

fn from_f32(value: f32) -> f64

Implementors§