logo
pub trait Encoding: Copy {
    const MAX: Self;
    const MIN: Self;
    const MIN_POSITIVE: Self;
    const EPSILON: Self;

    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

Implementations on Foreign Types

Implementors