获取左右子树
(&mut self)
| 166 | |
| 167 | // 获取左右子树 |
| 168 | fn left_subtree(&mut self) -> &mut Self { |
| 169 | match *self { |
| 170 | Null => panic!("Empty tree"), |
| 171 | Tree(ref mut node) => &mut node.left, |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | fn right_subtree(&mut self) -> &mut Self { |
| 176 | match *self { |
no outgoing calls
no test coverage detected