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

Method inorder

code/chapter07/binary_tree.rs:74–78  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

72 }
73
74 fn inorder(&self) {
75 if !self.left.is_none() { self.left.as_ref().unwrap().inorder(); }
76 println!("kes is {:?}", &self.key);
77 if !self.right.is_none() { self.right.as_ref().unwrap().inorder(); }
78 }
79
80 fn postorder(&self) {
81 if !self.left.is_none() { self.left.as_ref().unwrap().postorder(); }

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected