This commit is contained in:
Ayaz Hafiz 2022-05-03 19:38:25 -04:00
parent 5624c492da
commit b05874924f
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 17 additions and 20 deletions

View file

@ -457,6 +457,10 @@ impl Pools {
self.0.len()
}
pub fn is_empty(&self) -> bool {
self.len() == 0
}
pub fn get_mut(&mut self, rank: Rank) -> &mut Vec<Variable> {
match self.0.get_mut(rank.into_usize()) {
Some(reference) => reference,