Trait Nullable

Source
pub trait Nullable:
    PartialEq
    + Eq
    + Sized {
    const NULL: Self;

    // Provided method
    fn is_null(&self) -> bool { ... }
}

Required Associated Constants§

Source

const NULL: Self

Provided Methods§

Source

fn is_null(&self) -> bool

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 Nullable for ()

Source§

const NULL: Self = ()

Implementors§