pub trait Encoding: Copy {
const MAX: Self;
const MIN: Self;
const MIN_POSITIVE: Self;
const EPSILON: Self;
// Required methods
fn classify(self) -> FpCategory;
fn is_normal(self) -> bool;
fn is_sign_positive(self) -> bool;
fn is_sign_negative(self) -> bool;
fn integer_decode(self) -> (u64, i16, i8);
}Expand description
Floating-point encoding.
Provides values and operations that describe the encoding of an IEEE-754
floating-point value. Infinities and NaNs are described by the Infinite
and NaN sub-traits.
Required Associated Constants§
Required Methods§
fn classify(self) -> FpCategory
fn is_normal(self) -> bool
fn is_sign_positive(self) -> bool
fn is_sign_negative(self) -> bool
fn integer_decode(self) -> (u64, i16, i8)
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.