Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ node
Method
node
code/chapter07/avl.rs:160–165 ·
view source on GitHub ↗
获取节点
(&mut self)
Source
from the content-addressed store, hash-verified
158
159
// 获取节点
160
fn node(&mut self) -> &mut AvlNode<T> {
161
match *self {
162
Null => panic!(
"Empty tree"
),
163
Tree(ref mut n) => n,
164
}
165
}
166
167
// 获取左右子树
168
fn left_subtree(&mut self) -> &mut Self {
Callers
1
rebalance
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected