pub trait NanType: Copy + Clone + Default + Debug + PartialOrd + PartialEq {
    // Required method
    fn is_nan(self) -> bool;
}
Expand description

Trait that lets you generalize over types that have a NaN.

Required Methods§

source

fn is_nan(self) -> bool

Returns true if this value is NaN.

Implementations on Foreign Types§

source§

impl NanType for f64

source§

fn is_nan(self) -> bool

source§

impl NanType for f32

source§

fn is_nan(self) -> bool

Implementors§