Skip to main content

Nullable

Trait Nullable 

Source
pub trait Nullable: Offset {
    const NULL: Self;
}
Expand description

A Delta type that has a null/zero value.

§Safety

Must satisfy: add(NULL, ptr) == ptr for all pointers.

Required Associated Constants§

Source

const NULL: Self

The null/zero offset value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Nullable for i8

Source§

const NULL: Self = 0

Source§

impl Nullable for i16

Source§

const NULL: Self = 0

Source§

impl Nullable for i32

Source§

const NULL: Self = 0

Source§

impl Nullable for i64

Source§

const NULL: Self = 0

Source§

impl Nullable for i128

Source§

const NULL: Self = 0

Source§

impl Nullable for isize

Source§

const NULL: Self = 0

Implementors§