获取左右子树
(&mut self)
| 179 | |
| 180 | // 获取左右子树 |
| 181 | fn left_subtree(&mut self) -> &mut Self { |
| 182 | match self { |
| 183 | Null => panic!("Error: Empty tree!"), |
| 184 | Tree(node) => &mut node.left, |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | fn right_subtree(&mut self) -> &mut Self { |
| 189 | match self { |
no outgoing calls
no test coverage detected