pub(crate) trait FloatTraits: Float {
type SigType: UInt;
const NUM_BITS: i32;
const IMPLICIT_BIT: Self::SigType;
const NUM_SIG_BITS: i32 = _;
const NUM_EXP_BITS: i32 = _;
const EXP_MASK: i32 = _;
const EXP_BIAS: i32 = _;
const EXP_OFFSET: i32 = _;
// Required method
fn to_bits(self) -> Self::SigType;
// Provided methods
fn is_negative(bits: Self::SigType) -> bool { ... }
fn get_sig(bits: Self::SigType) -> Self::SigType { ... }
fn get_exp(bits: Self::SigType) -> i64 { ... }
}Required Associated Constants§
Provided Associated Constants§
const NUM_SIG_BITS: i32 = _
const NUM_EXP_BITS: i32 = _
const EXP_MASK: i32 = _
const EXP_BIAS: i32 = _
const EXP_OFFSET: i32 = _
Required Associated Types§
Required Methods§
Provided Methods§
fn is_negative(bits: Self::SigType) -> bool
fn get_sig(bits: Self::SigType) -> Self::SigType
fn get_exp(bits: Self::SigType) -> i64
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.