logo
pub trait NanLikeInterface {
    fn make_nan_like() -> Self;
    fn is_nan(&self) -> bool;
}
Expand description

Implement check is it nan and constructor with NAN value.

Required Methods

Construct NAN-like. If the type does not have NAN value in codomain of the type it should return default value.

Is current value NAN? Always false if codomain of the type does not have NAN value.

Implementations on Foreign Types

Implementors