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

Method index

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

Source from the content-addressed store, hash-verified

266
267 #[inline(always)]
268 fn index(&self, k: K) -> &V {
269 self.elems.get(k.index()).unwrap_or(&self.default)
270 }
271}
272
273/// Mutable indexing into an `SecondaryMap`.

Callers 8

iter_entity_rangeFunction · 0.45
len_ofMethod · 0.45
allocMethod · 0.45
getMethod · 0.45
get_mutMethod · 0.45
try_insertMethod · 0.45
removeMethod · 0.45
index_mutMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected