Skip to main content

assert_non_null

Function assert_non_null 

Source
pub fn assert_non_null<T>(ptr: *const T, what: &str)
Expand description

Assert that a pointer is non-null and valid.

Used in debug builds to catch NULL pointer dereferences early.