Lines Matching refs:map
64 let mut map = TryIndexMap::<u32, u32>::new(); in try_index_map_reserve() localVariable
65 map.reserve(100)?; in try_index_map_reserve()
73 let mut map = TryIndexMap::<u32, u32>::new(); in try_index_map_reserve_exact() localVariable
74 map.reserve_exact(100)?; in try_index_map_reserve_exact()
86 let mut map = TryIndexMap::new(); in try_index_map_insert() localVariable
87 map.insert(10, 20)?; in try_index_map_insert()
99 let mut map = TryIndexMap::new(); in try_index_map_insert_full() localVariable
100 map.insert_full(10, 20)?; in try_index_map_insert_full()
112 let mut map = TryIndexMap::new(); in try_index_map_insert_sorted() localVariable
113 map.insert_sorted(10, 20)?; in try_index_map_insert_sorted()
125 let mut map = TryIndexMap::new(); in try_index_map_insert_sorted_by() localVariable
126 map.insert_sorted_by(10, 20, |_k, _v, _k2, _v2| core::cmp::Ordering::Less)?; in try_index_map_insert_sorted_by()
138 let mut map = TryIndexMap::new(); in try_index_map_insert_sorted_by_key() localVariable
139 map.insert_sorted_by_key(10, 20, |_k, v| *v)?; in try_index_map_insert_sorted_by_key()
151 let mut map = TryIndexMap::new(); in try_index_map_insert_before() localVariable
152 map.insert("a", 20)?; in try_index_map_insert_before()
153 map.insert("b", 30)?; in try_index_map_insert_before()
154 map.insert_before(1, "c", 40)?; in try_index_map_insert_before()
155 assert_eq!(map[0], 20); in try_index_map_insert_before()
156 assert_eq!(map[1], 40); in try_index_map_insert_before()
157 assert_eq!(map[2], 30); in try_index_map_insert_before()
169 let mut map = TryIndexMap::new(); in try_index_map_shift_insert() localVariable
170 map.insert("a", 20)?; in try_index_map_shift_insert()
171 map.insert("b", 30)?; in try_index_map_shift_insert()
172 map.shift_insert(1, "c", 40)?; in try_index_map_shift_insert()
173 assert_eq!(map[0], 20); in try_index_map_shift_insert()
174 assert_eq!(map[1], 40); in try_index_map_shift_insert()
175 assert_eq!(map[2], 30); in try_index_map_shift_insert()