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

Function postorder

publication/code/chapter08/avl.rs:432–441  ·  view source on GitHub ↗
(avl: &AvlTree<T>)

Source from the content-addressed store, hash-verified

430}
431
432fn postorder<T: Clone + Ord + Debug>(avl: &AvlTree<T>) {
433 match avl {
434 Null => (),
435 Tree(node) => {
436 postorder(&node.left);
437 postorder(&node.right);
438 println!("key: {:?}", node.key);
439 },
440 }
441}
442
443fn levelorder<T: Clone + Ord + Debug>(avl: &AvlTree<T>) {
444 let size = avl.size();

Callers 1

orderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected