[][src]Trait ffi_helpers::Nullable

pub trait Nullable {
    const NULL: Self;

    fn is_null(&self) -> bool;
}

An object which has an "obviously invalid" value, for use with the null_pointer_check!() macro.

This trait is implemented for all integer types and raw pointers, returning 0 and null respectively.

Associated Constants

const NULL: Self

Loading content...

Required methods

fn is_null(&self) -> bool

Loading content...

Implementations on Foreign Types

impl<T> Nullable for *const T[src]

impl<T> Nullable for *mut T[src]

impl Nullable for u8[src]

impl Nullable for i8[src]

impl Nullable for u16[src]

impl Nullable for i16[src]

impl Nullable for u32[src]

impl Nullable for i32[src]

impl Nullable for u64[src]

impl Nullable for i64[src]

impl Nullable for usize[src]

impl Nullable for isize[src]

impl<T> Nullable for Option<T>[src]

impl Nullable for ()[src]

Loading content...

Implementors

Loading content...