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

Method inorder

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

Source from the content-addressed store, hash-verified

168 }
169
170 unsafe fn inorder(&self) {
171 if !self.left.is_null() { (*self.left).inorder(); }
172 println!("key: {:?}", &self.key);
173 if !self.right.is_null() { (*self.right).inorder(); }
174 }
175
176 unsafe fn postorder(&self) {
177 if !self.left.is_null() { (*self.left).postorder(); }

Callers 1

orderFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected