Function null_mut
const fn null_mut<T: PointeeSized + Thin>() -> *mut T
Creates a null mutable raw pointer.
This function is equivalent to zero-initializing the pointer:
MaybeUninit::<*mut T>::zeroed().assume_init().
The resulting pointer has the address 0.
Examples
use ptr;
let p: *mut i32 = null_mut;
assert!;
assert_eq!; // this pointer has the address 0