Implement attribute criterion

* Implement WordLevelIterator
* Implement QueryLevelIterator
* Implement set algorithm based on iterators

Not tested + Some TODO to fix
This commit is contained in:
many
2021-03-31 19:23:02 +02:00
parent 361193099f
commit 59f58c15f7
7 changed files with 394 additions and 32 deletions

View File

@ -21,6 +21,10 @@ impl TreeLevel {
pub const fn min_value() -> TreeLevel {
TreeLevel(0)
}
pub fn saturating_sub(&self, lhs: u8) -> TreeLevel {
TreeLevel(self.0.saturating_sub(lhs))
}
}
impl Into<u8> for TreeLevel {