pub trait FloatFormat: Copy {
const EXP_BITS: u32;
const MAN_BITS: u32;
const MAX_NORMAL: f32;
const NAME: &'static str;
const BITS: u32 = _;
// Provided method
fn quantize(x: f32) -> f32 { ... }
}Expand description
A compile-time-known binary float format.
Required Associated Constants§
Sourceconst MAX_NORMAL: f32
const MAX_NORMAL: f32
Largest finite magnitude (format-specific: e.g. 448 for E4M3, 6 for E2M1).
Provided Associated Constants§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".