IsNan

Trait IsNan 

Source
pub trait IsNan: Sized + Copy {
    // Required method
    fn is_nan(self) -> bool;
}
Expand description

Trait for a floating point number that can be checked for NaN (not-a-number).

Required Methods§

Source

fn is_nan(self) -> bool

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.

Implementations on Foreign Types§

Source§

impl IsNan for f32

Source§

fn is_nan(self) -> bool

Source§

impl IsNan for f64

Source§

fn is_nan(self) -> bool

Implementors§