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

Method preorder

publication/code/chapter08/rbtree.rs:164–168  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

162 }
163
164 unsafe fn preorder(&self) {
165 println!("key: {:?}", &self.key);
166 if !self.left.is_null() { (*self.left).preorder(); }
167 if !self.right.is_null() { (*self.right).preorder(); }
168 }
169
170 unsafe fn inorder(&self) {
171 if !self.left.is_null() { (*self.left).inorder(); }

Callers 1

orderFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected