vortex_array/arrays/varbin/
operator.rs1use std::hash::{Hash, Hasher};
5
6use crate::arrays::VarBinArray;
7use crate::operator::{OperatorEq, OperatorHash};
8use crate::vtable::ValidityHelper;
9
10impl OperatorHash for VarBinArray {
11 fn operator_hash<H: Hasher>(&self, state: &mut H) {
12 self.dtype.hash(state);
13 self.bytes().operator_hash(state);
14 self.offsets().operator_hash(state);
15 self.validity().operator_hash(state);
16 }
17}
18
19impl OperatorEq for VarBinArray {
20 fn operator_eq(&self, other: &Self) -> bool {
21 self.dtype == other.dtype
22 && self.bytes().operator_eq(other.bytes())
23 && self.offsets().operator_eq(other.offsets())
24 && self.validity().operator_eq(other.validity())
25 }
26}
27
28