use crate::operator::{OperatorEq, OperatorRef};
#[derive(Debug, Clone)]
pub enum RowSelection {
Domain(usize),
All,
MaskOperator(OperatorRef),
}
impl PartialEq for RowSelection {
fn eq(&self, other: &Self) -> bool {
match (self, other) {
(RowSelection::Domain(n1), RowSelection::Domain(n2)) => n1 == n2,
(RowSelection::All, RowSelection::All) => true,
(RowSelection::MaskOperator(o1), RowSelection::MaskOperator(o2)) => o1.operator_eq(o2),
_ => false,
}
}
}
impl Eq for RowSelection {}