extern crate rudy; use rudy::rudymap::RudyMap; fn main() { let mut map: RudyMap = RudyMap::new(); let low = 0; let high = 100_000_000; for i in low..high { if let Some(evicted) = map.insert(i, i + 1) { println!("Evicted: {}", evicted); } } for i in low..high { if map.get(i) != Some(&(i + 1)) { println!("map({}) -> {:?} != {}", i, map.get(i), i + 1); } } }