[][src]Trait decorum::Encoding

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); }

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.

Associated Constants

const MAX: Self

const MIN: Self

const MIN_POSITIVE: Self

const EPSILON: Self

Loading content...

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)

Loading content...

Implementations on Foreign Types

impl Encoding for f32[src]

impl Encoding for f64[src]

Loading content...

Implementors

impl<T, P> Encoding for ConstrainedFloat<T, P> where
    T: Float + Primitive,
    P: Constraint<T>, 
[src]

Loading content...