Skip to main content

valid_sentinel_ptr

Function valid_sentinel_ptr 

Source
pub fn valid_sentinel_ptr<T>(ptr: *const T) -> bool
Expand description

Test to see if a pointer (which may be a sentinel) is valid. Valid means it is not null and not a sentinel.