MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / none_leaf_size

Method none_leaf_size

publication/code/chapter08/bst.rs:121–123  ·  view source on GitHub ↗

计算非叶节点数

(&self)

Source from the content-addressed store, hash-verified

119
120 // 计算非叶节点数
121 fn none_leaf_size(&self) -> usize {
122 self.size() - self.leaf_size()
123 }
124
125 // 计算树深度
126 fn depth(&self) -> usize {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
leaf_sizeMethod · 0.45

Tested by

no test coverage detected