polars_utils::nulls

Trait IsNull

Source
pub trait IsNull {
    type Inner;

    const HAS_NULLS: bool;

    // Required methods
    fn is_null(&self) -> bool;
    fn unwrap_inner(self) -> Self::Inner;
}

Required Associated Constants§

Required Associated Types§

Required Methods§

Source

fn is_null(&self) -> bool

Source

fn unwrap_inner(self) -> Self::Inner

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 IsNull for bool

Source§

impl IsNull for f32

Source§

impl IsNull for f64

Source§

impl IsNull for i8

Source§

impl IsNull for i16

Source§

impl IsNull for i32

Source§

impl IsNull for i64

Source§

impl IsNull for i128

Source§

impl IsNull for u8

Source§

impl IsNull for u16

Source§

impl IsNull for u32

Source§

impl IsNull for u64

Source§

impl IsNull for u128

Source§

impl<'a> IsNull for &'a [u8]

Source§

const HAS_NULLS: bool = false

Source§

type Inner = &'a [u8]

Source§

fn is_null(&self) -> bool

Source§

fn unwrap_inner(self) -> Self::Inner

Source§

impl<'a, T: IsNull + ?Sized> IsNull for &'a T

Source§

const HAS_NULLS: bool = false

Source§

type Inner = &'a T

Source§

fn is_null(&self) -> bool

Source§

fn unwrap_inner(self) -> Self::Inner

Source§

impl<T> IsNull for Option<T>

Source§

const HAS_NULLS: bool = true

Source§

type Inner = T

Source§

fn is_null(&self) -> bool

Source§

fn unwrap_inner(self) -> Self::Inner

Implementors§

Source§

impl<'a> IsNull for BytesHash<'a>

Source§

impl<T: IsNull> IsNull for TotalOrdWrap<T>

Source§

const HAS_NULLS: bool = T::HAS_NULLS

Source§

type Inner = <T as IsNull>::Inner