MCPcopy Create free account
hub / github.com/apache/datafusion / arc_ptr_eq

Function arc_ptr_eq

datafusion/expr/src/ptr_eq.rs:26–28  ·  view source on GitHub ↗

Compares two `Arc` pointers for equality based on their underlying pointers values. This is not equivalent to [`Arc::ptr_eq`] for fat pointers, see that method for more information.

(a: &Arc<T>, b: &Arc<T>)

Source from the content-addressed store, hash-verified

24/// This is not equivalent to [`Arc::ptr_eq`] for fat pointers, see that method
25/// for more information.
26pub fn arc_ptr_eq<T: ?Sized>(a: &Arc<T>, b: &Arc<T>) -> bool {
27 std::ptr::eq(Arc::as_ptr(a), Arc::as_ptr(b))
28}
29
30/// Hashes an `Arc` pointer based on its underlying pointer value.
31/// The general contract for this function is that if [`arc_ptr_eq`] returns `true`

Callers 1

eqMethod · 0.85

Calls 1

eqFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…