Module cve_rs::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 allocate an object. The returned reference is always invalid.
- Equivalent to
std::ptr::null()
, but returns an null reference instead. - Equivalent to
std::ptr::null_mut()
, but returns an mutable null reference instead.