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.
Eq
Handle
1 parent 32f2e92 commit 2f409a8Copy full SHA for 2f409a8
experiments/2024-12-09/src/geometry/operation.rs
@@ -29,7 +29,7 @@ impl fmt::Display for OperationDisplay<'_> {
29
}
30
31
32
-#[derive(Eq, Ord, PartialEq, PartialOrd)]
+#[derive(Ord, PartialOrd)]
33
pub struct Handle<T> {
34
inner: Rc<T>,
35
@@ -72,6 +72,14 @@ impl<T> Deref for Handle<T> {
72
73
74
75
+impl<T> Eq for Handle<T> {}
76
+
77
+impl<T> PartialEq for Handle<T> {
78
+ fn eq(&self, other: &Self) -> bool {
79
+ Rc::ptr_eq(&self.inner, &other.inner)
80
+ }
81
+}
82
83
impl<T> fmt::Debug for Handle<T> {
84
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
85
f.debug_struct("Handle")
0 commit comments