Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ node
Method
node
publication/code/chapter08/avl.rs:173–178 ·
view source on GitHub ↗
获取子节点
(&mut self)
Source
from the content-addressed store, hash-verified
171
172
// 获取子节点
173
fn node(&mut self) -> &mut AvlNode<T> {
174
match self {
175
Null => panic!(
"Error: Empty tree!"
),
176
Tree(node) => node,
177
}
178
}
179
180
// 获取左右子树
181
fn left_subtree(&mut self) -> &mut Self {
Callers
1
rebalance
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected