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

Function basic

publication/code/chapter08/avl.rs:465–474  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

463 order();
464
465 fn basic() {
466 let mut t = AvlTree::new();
467 for i in 0..5 { let (_r1, _r2) = t.insert(i); }
468
469 println!("empty:{},size:{}",t.is_empty(),t.size());
470 println!("leaves:{},depth:{}",t.leaf_size(),t.depth());
471 println!("internals:{}", t.none_leaf_size());
472 println!("min-max key:{:?}-{:?}",t.min(),t.max());
473 println!("contains 9:{}",t.contains(&9));
474 }
475
476 fn order() {
477 let mut avl = AvlTree::new();

Callers 1

mainFunction · 0.70

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected