Get the current element, or `None` if the cursor is at the end.
(&self)
| 251 | |
| 252 | /// Get the current element, or `None` if the cursor is at the end. |
| 253 | pub fn elem(&self) -> Option<K> { |
| 254 | self.path |
| 255 | .leaf_pos() |
| 256 | .and_then(|(node, entry)| self.pool[node].unwrap_leaf().0.get(entry).cloned()) |
| 257 | } |
| 258 | |
| 259 | /// Move this cursor to `elem`. |
| 260 | /// |
no test coverage detected