pub trait Nan: Encoding { const NAN: Self; fn is_nan(self) -> bool; }
Floating-point representations that expose NaNs.
NaN
A representation of NaN.
For primitive floating-point types, NaN is incomparable. Therefore, prefer the is_nan predicate over direct comparisons with NaN.
is_nan