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

Class AvlNode

publication/code/chapter08/avl.rs:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected