(&mut self)
| 234 | /// [`SparseMap::as_mut_vec`]. |
| 235 | #[inline] |
| 236 | pub fn rebuild_mapping(&mut self) { |
| 237 | for (idx, &(k, _)) in self.dense.iter().enumerate() { |
| 238 | self.sparse[k] = idx as u32; |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | /// Iterate over all the keys and values in this map. |
| 243 | #[inline] |