Get a text version of the path to `key`.
(&self, key: K, forest: &MapForest<K, V>, comp: &C)
| 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 { |
| 301 | use alloc::string::ToString; |
| 302 | match self.root.expand() { |
| 303 | None => "map(empty)".to_string(), |
| 304 | Some(root) => { |
| 305 | let mut path = Path::default(); |
| 306 | path.find(key, root, &forest.nodes, comp); |
| 307 | path.to_string() |
| 308 | } |
| 309 | } |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | struct MapCursorRaw<K, V> |