| 55 | // Avl 树节点定义 |
| 56 | #[derive(Clone, Debug, PartialEq)] |
| 57 | struct AvlNode<T> { |
| 58 | key: T, |
| 59 | left: AvlTree<T>, // 左子树 |
| 60 | right: AvlTree<T>, // 右子树 |
| 61 | bfactor: i8, // 平衡因子 |
| 62 | } |
| 63 | |
| 64 | use AvlTree::*; |
| 65 |
nothing calls this directly
no outgoing calls
no test coverage detected