The number of colliding hashes in the map. If two hashes collide then this counts as 2.
(&self)
| 173 | /// |
| 174 | /// If two hashes collide then this counts as 2. |
| 175 | pub fn num_collisions(&self) -> usize { |
| 176 | self.colliders.iter().map(|a| a.len()).sum() |
| 177 | } |
| 178 | |
| 179 | /// The number hashes that do not collide. |
| 180 | pub fn num_non_collisions(&self) -> usize { |