Verify consistency.
(&self, forest: &MapForest<K, V>, comp: &C)
| 288 | { |
| 289 | /// Verify consistency. |
| 290 | fn verify<C: Comparator<K>>(&self, forest: &MapForest<K, V>, comp: &C) |
| 291 | where |
| 292 | NodeData<MapTypes<K, V>>: fmt::Display, |
| 293 | { |
| 294 | if let Some(root) = self.root.expand() { |
| 295 | forest.nodes.verify_tree(root, comp); |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | /// Get a text version of the path to `key`. |
| 300 | fn tpath<C: Comparator<K>>(&self, key: K, forest: &MapForest<K, V>, comp: &C) -> String { |