Trait rand::distributions::utils::Float

source ·
pub(crate) trait Float: Sized {
    // Required methods
    fn is_nan(self) -> bool;
    fn is_infinite(self) -> bool;
    fn is_finite(self) -> bool;
}
Expand description

Implement functions available in std builds but missing from core primitives

Required Methods§

source

fn is_nan(self) -> bool

source

fn is_infinite(self) -> bool

source

fn is_finite(self) -> bool

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Float for f32

source§

impl Float for f64

Implementors§