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

Method get_left

publication/code/chapter08/binary_tree.rs:130–132  ·  view source on GitHub ↗

获取左右子树

(&self)

Source from the content-addressed store, hash-verified

128
129 // 获取左右子树
130 fn get_left(&self) -> Link<T> {
131 self.left.clone()
132 }
133
134 fn get_right(&self) -> Link<T> {
135 self.right.clone()

Callers 6

levelorderMethod · 0.45
preorderFunction · 0.45
inorderFunction · 0.45
postorderFunction · 0.45
levelorderFunction · 0.45
oexpFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected