| 12 | // Avl 树节点定义 |
| 13 | #[derive(Debug)] |
| 14 | struct AvlNode<T> { |
| 15 | val: T, |
| 16 | left: AvlTree<T>, // 左子树 |
| 17 | right: AvlTree<T>, // 右子树 |
| 18 | bfactor: i8, // 平衡因子 |
| 19 | } |
| 20 | |
| 21 | use AvlTree::*; |
| 22 |
nothing calls this directly
no outgoing calls
no test coverage detected