pub trait Float {
const MANTISSA_BITS: usize;
const EXP_BITS: usize;
const EMAX: i32 = _;
// Required method
fn from_fp(neg: bool, mantissa: u64, exp2: u32) -> Self;
}
Expand description
A trait for IEEE754 floating point numbers.
Required Associated Constants§
Sourceconst MANTISSA_BITS: usize
const MANTISSA_BITS: usize
The bit length of mantissa part.
Provided Associated Constants§
Required Methods§
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.