pub trait NanLikeInterface {
// Required methods
fn make_nan_like() -> Self;
fn is_nan(&self) -> bool;
}
Expand description
Implement check is it nan and constructor with NAN value.
Required Methods§
Sourcefn make_nan_like() -> Self
fn make_nan_like() -> Self
Construct NAN-like. If the type does not have NAN value in codomain of the type it should return default value.
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.