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 an null reference instead. - null_
mut - Equivalent to
std::ptr::null_mut()
, but returns an mutable null reference instead.