Introduce the Proximity criterion

This commit is contained in:
Kerollmops
2021-02-22 17:17:01 +01:00
parent 22b84fe543
commit 9bc9b36645
4 changed files with 301 additions and 8 deletions

View File

@ -79,6 +79,13 @@ impl Operation {
Self::Consecutive(ops)
}
}
pub fn query(&self) -> Option<&Query> {
match self {
Operation::Query(query) => Some(query),
_ => None,
}
}
}
#[derive(Clone, Eq, PartialEq, Hash)]