wiwi::num

Trait IntoF32

Source
pub trait IntoF32
where Self: Sealed,
{ // Required method fn into_f32(self) -> f32; }
Expand description

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

Required Methods§

Source

fn into_f32(self) -> f32

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

Source§

fn into_f32(self) -> f32

Source§

impl IntoF32 for f32

Source§

fn into_f32(self) -> f32

Source§

impl IntoF32 for i8

Source§

fn into_f32(self) -> f32

Source§

impl IntoF32 for i16

Source§

fn into_f32(self) -> f32

Source§

impl IntoF32 for u8

Source§

fn into_f32(self) -> f32

Source§

impl IntoF32 for u16

Source§

fn into_f32(self) -> f32

Implementors§