Lines Matching defs:map2
37090 let mut map2 = BTreeMap::new();
37092 let mut map1_copy = map2.clone();
37096 map2_copy.clone_from(&map2); // large cloned from small
37097 assert_eq!(map2_copy, map2);
37098 map2.insert(100 * j + 1, 2 * j + 1);
37100 map2.clone_from(&map1); // same length
37101 map2.check();
37102 assert_eq!(map2, map1);
37522 let mut map2 = BTreeMap::new();
37523 map2.insert(Cyclic3::A, ());
37524 map2.insert(Cyclic3::B, ());
37525 map2.insert(Cyclic3::C, ()); // lands first, before A
37526 map2.insert(Cyclic3::B, ()); // lands first, before C
37528 map2.check(); // keys are not unique but still strictly ascending
37530 assert_eq!(map2.len(), 4);
37531 map1.append(&mut map2);
37533 assert_eq!(map2.len(), 0);
37535 map2.check();