pub trait FloatInstance {
    // Required methods
    fn is_infinite(&self) -> bool;
    fn is_nan(&self) -> bool;
}
Expand description

Defines common operations on floating-point numeric types.

Required Methods§

source

fn is_infinite(&self) -> bool

Return true if this Number is infinite (e.g. f32::INFINITY).

source

fn is_nan(&self) -> bool

Return true if this is not a valid number (NaN).

Implementors§