pub trait NanEncoding: Copy {
type Nan;
const NAN: Self::Nan;
// Required method
fn is_nan(self) -> bool;
}
Expand description
A type with an IEEE 754 floating-point representation that supports NaN
s.
NanEncoding
types have NaN
inhabitants.
Required Associated Constants§
Required Associated Types§
Sourcetype Nan
type Nan
The type of the arbitrary Nan
representation NAN
.
This may be an intermediate type other than Self
. In particular, primitive IEEE 754
floating-point types represent NaN
with the Nan
type, which is incomparable and must
first be converted into its primitive types.
For proxy types, which are totally ordered, this type satisfies the bound Eq + Ord
.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.