Trait IsNan

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

This trait is used to check if a number is NaN. For integer types, this will always return false.

Required Methods§

Source

fn is_nan(self) -> bool

Returns true if self is NaN.

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

Source§

impl IsNan for i8

Source§

fn is_nan(self) -> bool

Source§

impl IsNan for i16

Source§

fn is_nan(self) -> bool

Source§

impl IsNan for i32

Source§

fn is_nan(self) -> bool

Source§

impl IsNan for i64

Source§

fn is_nan(self) -> bool

Source§

impl IsNan for i128

Source§

fn is_nan(self) -> bool

Source§

impl IsNan for isize

Source§

fn is_nan(self) -> bool

Source§

impl IsNan for u8

Source§

fn is_nan(self) -> bool

Source§

impl IsNan for u16

Source§

fn is_nan(self) -> bool

Source§

impl IsNan for u32

Source§

fn is_nan(self) -> bool

Source§

impl IsNan for u64

Source§

fn is_nan(self) -> bool

Source§

impl IsNan for u128

Source§

fn is_nan(self) -> bool

Source§

impl IsNan for usize

Source§

fn is_nan(self) -> bool

Implementors§