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

Function inorder

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

Source from the content-addressed store, hash-verified

419}
420
421fn inorder<T: Clone + Ord + Debug>(avl: &AvlTree<T>) {
422 match avl {
423 Null => (),
424 Tree(node) => {
425 inorder(&node.left);
426 println!("key: {:?}", node.key);
427 inorder(&node.right);
428 },
429 }
430}
431
432fn postorder<T: Clone + Ord + Debug>(avl: &AvlTree<T>) {
433 match avl {

Callers 1

orderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected