Get the current leaf node and entry, if any.
(&self)
| 231 | |
| 232 | /// Get the current leaf node and entry, if any. |
| 233 | pub fn leaf_pos(&self) -> Option<(Node, usize)> { |
| 234 | let i = self.size.wrapping_sub(1); |
| 235 | self.node.get(i).map(|&n| (n, self.entry[i].into())) |
| 236 | } |
| 237 | |
| 238 | /// Get the current leaf node. |
| 239 | fn leaf_node(&self) -> Node { |