pub fn assert_non_null_mut<T>(ptr: *mut T, what: &str)
Assert that a mutable pointer is non-null and valid.