Module references

Module references 

Source
Expand description

Reimplementations of std::ptr::null() and std::ptr::null_mut(), with safe code only. Relies on [crate::transmute] under the hood.

Functionsยง

not_alloc
Not allocate an object. The returned reference is always invalid.
null
Equivalent to std::ptr::null(), but returns a null reference instead.
null_mut
Equivalent to std::ptr::null_mut(), but returns a mutable null reference instead.