logo
pub trait Nan: Encoding {
    const NAN: Self;

    fn is_nan(self) -> bool;
}
Expand description

Floating-point representations that expose NaNs.

Required Associated Constants

A representation of NaN.

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

Required Methods

Implementations on Foreign Types

Implementors