Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ size
Method
size
publication/code/chapter08/bst.rs:76–78 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
74
}
75
76
fn size(&self) -> usize {
77
self.calc_size(0)
78
}
79
80
// 递归计算节点个数
81
fn calc_size(&self, mut size: usize) -> usize {
Callers
3
none_leaf_size
Method · 0.45
levelorder
Method · 0.45
levelorder
Function · 0.45
Calls
1
calc_size
Method · 0.45
Tested by
no test coverage detected