Set the root node and point the path at the first entry of the node.
(&mut self, root: Node)
| 224 | |
| 225 | /// Set the root node and point the path at the first entry of the node. |
| 226 | pub fn set_root_node(&mut self, root: Node) { |
| 227 | self.size = 1; |
| 228 | self.node[0] = root; |
| 229 | self.entry[0] = 0; |
| 230 | } |
| 231 | |
| 232 | /// Get the current leaf node and entry, if any. |
| 233 | pub fn leaf_pos(&self) -> Option<(Node, usize)> { |
no outgoing calls
no test coverage detected