Lines Matching refs:get
424 .all(|(key, value)| other.get(key).map_or(false, |v| *value == *v)) in eq()
443 self.get(index).expect("no entry found for key") in index()
1162 pub fn get(&self, k: &K) -> Option<&V> { in get() method
1431 assert_eq!(*m.get(&1).unwrap(), 2); in test_insert()
1432 assert_eq!(*m.get(&2).unwrap(), 4); in test_insert()
1433 assert_eq!(*m.get(&2).unwrap(), 4); in test_insert()
1444 assert_eq!(*m.get(&2).unwrap(), 6); in test_replace()
1457 assert_eq!(*m2.get(&1).unwrap(), 2); in test_clone()
1458 assert_eq!(*m2.get(&2).unwrap(), 4); in test_clone()
1491 let r = m.get(&j); in test_lots_of_insertions()
1496 let r = m.get(&j); in test_lots_of_insertions()
1552 assert_eq!(m.get(&5), Some(&new)); in test_find_mut()
1559 assert_eq!(*m.get(&1).unwrap(), 2); in test_remove()
1561 assert_eq!(*m.get(&5).unwrap(), 3); in test_remove()
1563 assert_eq!(*m.get(&1).unwrap(), 2); in test_remove()
1564 assert_eq!(*m.get(&5).unwrap(), 3); in test_remove()
1565 assert_eq!(*m.get(&9).unwrap(), 4); in test_remove()
1652 assert!(m.get(&1).is_none()); in test_find()
1654 match m.get(&1) { in test_find()
1699 assert_eq!(map.get(&k), Some(&v)); in test_from_iter()