Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion crates/execution/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,25 @@ pub trait DeltaStore {
}
}

#[derive(Clone, PartialEq, Eq)]
#[derive(Clone)]
Comment thread
jsdt marked this conversation as resolved.
pub enum Row<'a> {
Ptr(RowRef<'a>),
Ref(&'a ProductValue),
}

impl PartialEq for Row<'_> {
fn eq(&self, other: &Self) -> bool {
match (self, other) {
(Self::Ptr(x), Self::Ptr(y)) => x == y,
(Self::Ref(x), Self::Ref(y)) => x == y,
(Self::Ptr(x), Self::Ref(y)) => x == *y,
(Self::Ref(x), Self::Ptr(y)) => y == *x,
}
}
}

impl Eq for Row<'_> {}

impl Hash for Row<'_> {
fn hash<H: Hasher>(&self, state: &mut H) {
match self {
Expand Down
Loading