MCPcopy 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_sizeMethod · 0.45
levelorderMethod · 0.45
levelorderFunction · 0.45

Calls 1

calc_sizeMethod · 0.45

Tested by

no test coverage detected