MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / AvlNode

Class AvlNode

code/chapter07/avl.rs:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected