MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / index_mut

Method index_mut

cranelift/entity/src/map.rs:282–288  ·  view source on GitHub ↗
(&mut self, k: K)

Source from the content-addressed store, hash-verified

280{
281 #[inline(always)]
282 fn index_mut(&mut self, k: K) -> &mut V {
283 let i = k.index();
284 if i >= self.elems.len() {
285 return self.resize_for_index_mut(i);
286 }
287 &mut self.elems[i]
288 }
289}
290
291impl<K, V> PartialEq for SecondaryMap<K, V>

Callers

nothing calls this directly

Calls 3

resize_for_index_mutMethod · 0.80
indexMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected