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

Function main

code/chapter07/avl.rs:249–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

247}
248
249fn main() {
250 let mut avl = AvlTree::new();
251 for i in 0..10 {
252 let (_r1, _r2) = avl.insert(i);
253 }
254 println!("empty: {}", avl.is_empty());
255 println!("len: {}", avl.len());
256 println!("depth: {}", avl.depth());
257 println!("9 in avl: {}", avl.search(&9));
258}

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected