pub trait LossyF32Conversion: Copy {
// Required method
fn as_f32_lossy(self) -> f32;
}Expand description
A helper trait to allow integer to f32 conversion (which may be lossy).
Required Methods§
fn as_f32_lossy(self) -> f32
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.