Lines Matching refs:map
500 self.inner.next().map(|(k, _)| k) in next()
545 self.inner.next().map(|(_, v)| v) in next()
593 self.inner.next().map(|(_, v)| v) in next()
1616 let map: RBTree<_, _> = vec.into_iter().collect(); in test_keys() localVariable
1617 let keys: Vec<_> = map.keys().cloned().collect(); in test_keys()
1627 let map: RBTree<_, _> = vec.into_iter().collect(); in test_values() localVariable
1628 let values: Vec<_> = map.values().cloned().collect(); in test_values()
1638 let mut map: RBTree<_, _> = vec.into_iter().collect(); in test_values_mut() localVariable
1639 for value in map.values_mut() { in test_values_mut()
1642 let values: Vec<_> = map.values().cloned().collect(); in test_values_mut()
1680 let mut map = RBTree::new(); in test_show() localVariable
1683 map.insert(1, 2); in test_show()
1684 map.insert(3, 4); in test_show()
1686 let map_str = format!("{:?}", map); in test_show()
1696 let map: RBTree<_, _> = xs.iter().cloned().collect(); in test_from_iter() localVariable
1699 assert_eq!(map.get(&k), Some(&v)); in test_from_iter()
1707 let map: RBTree<_, _> = xs.iter().cloned().collect(); in test_size_hint() localVariable
1709 let mut iter = map.iter(); in test_size_hint()
1720 let map: RBTree<_, _> = xs.iter().cloned().collect(); in test_iter_len() localVariable
1722 let mut iter = map.iter(); in test_iter_len()
1733 let mut map: RBTree<_, _> = xs.iter().cloned().collect(); in test_mut_size_hint() localVariable
1735 let mut iter = map.iter_mut(); in test_mut_size_hint()
1746 let mut map: RBTree<_, _> = xs.iter().cloned().collect(); in test_iter_mut_len() localVariable
1748 let mut iter = map.iter_mut(); in test_iter_mut_len()
1757 let mut map = RBTree::new(); in test_index() localVariable
1759 map.insert(1, 2); in test_index()
1760 map.insert(2, 1); in test_index()
1761 map.insert(3, 4); in test_index()
1763 assert_eq!(map[&2], 1); in test_index()
1769 let mut map = RBTree::new(); in test_index_nonexistent() localVariable
1771 map.insert(1, 2); in test_index_nonexistent()
1772 map.insert(2, 1); in test_index_nonexistent()
1773 map.insert(3, 4); in test_index_nonexistent()
1775 map[&4]; in test_index_nonexistent()