Function mz_build_id::assert_pointer_valid
source · pub(crate) fn assert_pointer_valid<T>(ptr: *const T)
Expand description
Asserts that the given pointer is valid.
Panics
Panics if the given pointer:
- is a null pointer
- is not properly aligned for
T