pub trait Encoding: Copy + NumCast {
fn max_value() -> Self;
fn min_value() -> Self;
fn min_positive_value() -> Self;
fn epsilon() -> Self;
fn classify(self) -> FpCategory;
fn is_normal(self) -> bool;
fn integer_decode(self) -> (u64, i16, i8);
}Expand description
Floating-point encoding.
Provides values and operations that directly relate to the encoding of an
IEEE-754 floating-point value with the exception of -INF, INF, and
NaN. See the Infinite and Nan traits.