We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ptr::eq
1 parent 0633c55 commit 00716b4Copy full SHA for 00716b4
src/libcore/ptr.rs
@@ -2483,6 +2483,10 @@ impl<T: ?Sized> Eq for *mut T {}
2483
/// by their address rather than comparing the values they point to
2484
/// (which is what the `PartialEq for &T` implementation does).
2485
///
2486
+/// Smart pointer types, such as `Box`, `Rc`, and `Arc` do not compare
2487
+/// using this function, instead they compare the values rather than
2488
+/// their addresses.
2489
+///
2490
/// # Examples
2491
2492
/// ```
0 commit comments