MCPcopy 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

mainFunction · 0.45
bubble_sort1Function · 0.45
bubble_sort2Function · 0.45
bubble_sort3Function · 0.45
selection_sortFunction · 0.45
cocktail_sortFunction · 0.45
cbic_sort1Function · 0.45
cbic_sort2Function · 0.45
cbic_sort3Function · 0.45
cbic_sort4Function · 0.45
radix_sortFunction · 0.45
insertion_sortFunction · 0.45

Calls 1

calc_lenMethod · 0.80

Tested by

no test coverage detected