(&mut self, idx: u32)
| 166 | } |
| 167 | |
| 168 | fn free_node(&mut self, idx: u32) { |
| 169 | self.free_list.push(idx); |
| 170 | let n = &mut self.nodes[idx as usize]; |
| 171 | n.sort_key.clear(); |
| 172 | n.primary_key.clear(); |
| 173 | n.count = 0; |
| 174 | n.left = NULL; |
| 175 | n.right = NULL; |
| 176 | n.height = 0; |
| 177 | } |
| 178 | |
| 179 | fn height(&self, idx: u32) -> i8 { |
| 180 | if idx == NULL { |
no test coverage detected