MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / rebuild_mapping

Method rebuild_mapping

src/entity/sparse.rs:236–240  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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]

Callers 2

computeMethod · 0.80
retainMethod · 0.80

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected