On this page
Function std::intrinsics::ptr_guaranteed_cmp
pub extern "rust-intrinsic" fn ptr_guaranteed_cmp<T>(
ptr: *const T,
other: *const T
) -> u8
🔬This is a nightly-only experimental API. (
core_intrinsics
)
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
Note that, unlike most intrinsics, this is safe to call; it does not require an unsafe
block. Therefore, implementations must not require the user to uphold any safety invariants.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/intrinsics/fn.ptr_guaranteed_cmp.html