pub(crate) fn check_raw_pointer<T>(value: *mut c_void) -> Option<NonNull<T>>
Convert a *mut c_void to a *mut T, checking that it is not null, misaligned, or pointing to a region of memory that wraps around the address space.
*mut c_void
*mut T