Trait Null

Source
pub trait Null {
    const NULL: Self;

    // Required method
    fn is_null(&self) -> bool;
}
Expand description

For more expressive code and for use with trait bounds.

Required Associated Constants§

Source

const NULL: Self

Required 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 Null for PCSTR

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for PCWSTR

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for PSTR

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for PWSTR

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HACCEL

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HANDLE

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HBITMAP

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HBRUSH

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HCURSOR

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HDC

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HDEVNOTIFY

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HDROP

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HDWP

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HENHMETAFILE

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HFONT

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HGDIOBJ

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HGLOBAL

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HHOOK

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HICON

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HINSTANCE

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HLOCAL

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HMENU

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HMETAFILE

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HMODULE

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HMONITOR

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HPALETTE

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HPEN

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HPOWERNOTIFY

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HPSXA

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HRGN

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HRSRC

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for HWND

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for NCRYPT_DESCRIPTOR_HANDLE

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for NCRYPT_STREAM_HANDLE

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for PSECURITY_DESCRIPTOR

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for PSID

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Source§

impl Null for SAFER_LEVEL_HANDLE

Source§

const NULL: Self

Source§

fn is_null(&self) -> bool

Implementors§