[][src]Trait rel_ptr::Nullable

pub trait Nullable: Delta {
    const NULL: Self;
}

A index which can contain null

Safety

This example is not tested
fn for_all_a(a: *mut u8) {
    assert_eq!(a, <Self as Delta>::add(Self::NULL, a));
    assert_eq!(Self::NULL, <Self as Delta>::sub(a, a));
    assert_eq!(Self::NULL, <Self as Delta>::sub_unchecked(a, a));
}

Associated Constants

const NULL: Self

The value No change in two pointer locations,

Loading content...

Implementations on Foreign Types

impl Nullable for i8[src]

impl Nullable for i16[src]

impl Nullable for i32[src]

impl Nullable for i64[src]

impl Nullable for i128[src]

impl Nullable for isize[src]

Loading content...

Implementors

Loading content...