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>)
| 24 | /// This is not equivalent to [`Arc::ptr_eq`] for fat pointers, see that method |
| 25 | /// for more information. |
| 26 | pub 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` |