Trait polars_utils::float::IsFloat

source ·
pub unsafe trait IsFloat: Sealed {
    // Provided methods
    fn is_float() -> bool { ... }
    fn is_f32() -> bool { ... }
    fn is_f64() -> bool { ... }
    fn is_nan(&self) -> bool
       where Self: Sized { ... }
    fn is_finite(&self) -> bool
       where Self: Sized { ... }
}
Expand description

§Safety

unsafe code downstream relies on the correct is_float call

Provided Methods§

source

fn is_float() -> bool

source

fn is_f32() -> bool

source

fn is_f64() -> bool

source

fn is_nan(&self) -> bool
where Self: Sized,

source

fn is_finite(&self) -> bool
where Self: Sized,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IsFloat for &str

source§

impl IsFloat for &[u8]

source§

impl IsFloat for bool

source§

impl IsFloat for f32

source§

impl IsFloat for f64

source§

impl IsFloat for i8

source§

impl IsFloat for i16

source§

impl IsFloat for i32

source§

impl IsFloat for i64

source§

impl IsFloat for i128

source§

impl IsFloat for u8

source§

impl IsFloat for u16

source§

impl IsFloat for u32

source§

impl IsFloat for u64

source§

impl<T: IsFloat> IsFloat for Option<T>

Implementors§