()
| 19 | } |
| 20 | |
| 21 | fn quick_start_example() { |
| 22 | println!("\n=== Quick Start Example ==="); |
| 23 | |
| 24 | let mut tree = BPlusTreeMap::new(4).unwrap(); |
| 25 | |
| 26 | // Insert some data |
| 27 | tree.insert(1, "one"); |
| 28 | tree.insert(3, "three"); |
| 29 | tree.insert(2, "two"); |
| 30 | |
| 31 | // Range query |
| 32 | let range: Vec<_> = tree.items_range(Some(&1), Some(&2)).collect(); |
| 33 | println!("Range [1,2]: {:?}", range); // [(&1, &"one"), (&2, &"two")] |
| 34 | |
| 35 | // Sequential access |
| 36 | println!("All entries in order:"); |
| 37 | for (key, value) in tree.slice() { |
| 38 | println!(" {}: {}", key, value); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | fn api_examples() { |
| 43 | println!("\n=== API Examples ==="); |
no test coverage detected