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

Method postorder

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

Source from the content-addressed store, hash-verified

78 }
79
80 fn postorder(&self) {
81 if !self.left.is_none() { self.left.as_ref().unwrap().postorder(); }
82 if !self.right.is_none() { self.right.as_ref().unwrap().postorder(); }
83 println!("kes is {:?}", &self.key);
84 }
85}
86
87// 前中后序遍历: 外部实现

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected