Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ len
Method
len
code/chapter07/bst.rs:32–34 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
30
}
31
32
fn len(&self) -> usize {
33
self.calc_len(0)
34
}
35
36
// 递归计算节点个数
37
fn calc_len(&self, mut i: usize) -> usize {
Callers
15
main
Function · 0.45
bubble_sort1
Function · 0.45
bubble_sort2
Function · 0.45
bubble_sort3
Function · 0.45
selection_sort
Function · 0.45
cocktail_sort
Function · 0.45
cbic_sort1
Function · 0.45
cbic_sort2
Function · 0.45
cbic_sort3
Function · 0.45
cbic_sort4
Function · 0.45
radix_sort
Function · 0.45
insertion_sort
Function · 0.45
Calls
1
calc_len
Method · 0.80
Tested by
no test coverage detected