[][src]Trait decorum::Nan

pub trait Nan: Encoding {
    const NAN: Self;

    fn is_nan(self) -> bool;
}

Floating-point representations that expose NaNs.

Associated Constants

const NAN: Self

A representation of NaN.

For primitive floating-point types, NaN is incomparable. Therefore, prefer the is_nan predicate over direct comparisons with NaN.

Loading content...

Required methods

fn is_nan(self) -> bool

Loading content...

Implementations on Foreign Types

impl Nan for f32[src]

impl Nan for f64[src]

Loading content...

Implementors

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

Loading content...