Skip to main content

ptr_guaranteed_cmp

Function ptr_guaranteed_cmp 

Source
pub const fn ptr_guaranteed_cmp<T>(ptr: *const T, other: *const T) -> u8
🔬This is a nightly-only experimental API. (core_intrinsics)
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Expand description

See documentation of <*const T>::guaranteed_eq for details. Returns 2 if the result is unknown. Returns 1 if the pointers are guaranteed equal. Returns 0 if the pointers are guaranteed inequal.