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

Method get_left

publication/code/chapter08/bst.rs:227–229  ·  view source on GitHub ↗

获取左右子节点

(&self)

Source from the content-addressed store, hash-verified

225
226 // 获取左右子节点
227 fn get_left(&self) -> Link<T,U> {
228 self.left.clone()
229 }
230
231 fn get_right(&self) -> Link<T,U> {
232 self.right.clone()

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected