vortex_array/pipeline/
row_selection.rs1use crate::operator::{OperatorEq, OperatorRef};
5
6#[derive(Debug, Clone)]
8pub enum RowSelection {
9 Domain(usize),
11 All,
13 MaskOperator(OperatorRef),
15}
16
17impl PartialEq for RowSelection {
18 fn eq(&self, other: &Self) -> bool {
19 match (self, other) {
20 (RowSelection::Domain(n1), RowSelection::Domain(n2)) => n1 == n2,
21 (RowSelection::All, RowSelection::All) => true,
22 (RowSelection::MaskOperator(o1), RowSelection::MaskOperator(o2)) => o1.operator_eq(o2),
23 _ => false,
24 }
25 }
26}
27impl Eq for RowSelection {}