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.
1 parent 29a0df4 commit 09ad71cCopy full SHA for 09ad71c
1 file changed
crates/execution/src/lib.rs
@@ -115,12 +115,25 @@ pub trait DeltaStore {
115
}
116
117
118
-#[derive(Clone, PartialEq, Eq)]
+#[derive(Clone)]
119
pub enum Row<'a> {
120
Ptr(RowRef<'a>),
121
Ref(&'a ProductValue),
122
123
124
+impl PartialEq for Row<'_> {
125
+ fn eq(&self, other: &Self) -> bool {
126
+ match (self, other) {
127
+ (Self::Ptr(x), Self::Ptr(y)) => x == y,
128
+ (Self::Ref(x), Self::Ref(y)) => x == y,
129
+ (Self::Ptr(x), Self::Ref(y)) => x == *y,
130
+ (Self::Ref(x), Self::Ptr(y)) => y == *x,
131
+ }
132
133
+}
134
+
135
+impl Eq for Row<'_> {}
136
137
impl Hash for Row<'_> {
138
fn hash<H: Hasher>(&self, state: &mut H) {
139
match self {
0 commit comments