polars_utils::float

Trait IsFloat

Source
pub unsafe trait IsFloat: Sealed + Sized {
    // Provided methods
    fn is_float() -> bool { ... }
    fn is_f32() -> bool { ... }
    fn is_f64() -> bool { ... }
    fn nan_value() -> Self { ... }
    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 nan_value() -> Self

Source

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

Source

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

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 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§