We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a289c23 commit b94291bCopy full SHA for b94291b
1 file changed
vortex-mask/src/eq.rs
@@ -1,6 +1,8 @@
1
// SPDX-License-Identifier: Apache-2.0
2
// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4
+use std::mem;
5
+
6
use crate::Mask;
7
8
impl PartialEq for Mask {
@@ -9,6 +11,9 @@ impl PartialEq for Mask {
9
11
if self.len() != other.len() {
10
12
return false;
13
}
14
+ if mem::discriminant(self) == mem::discriminant(other) && !matches!(self, Mask::Values(_)) {
15
+ return true;
16
+ }
17
if self.true_count() != other.true_count() {
18
19
0 commit comments