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

Method key

cranelift/bforest/src/map.rs:348–352  ·  view source on GitHub ↗
(&self, pool: &NodePool<MapTypes<K, V>>)

Source from the content-addressed store, hash-verified

346 }
347
348 fn key(&self, pool: &NodePool<MapTypes<K, V>>) -> Option<K> {
349 self.path
350 .leaf_pos()
351 .and_then(|(node, entry)| pool[node].unwrap_leaf().0.get(entry).cloned())
352 }
353
354 fn value(&self, pool: &NodePool<MapTypes<K, V>>) -> Option<V> {
355 self.path

Callers 2

nextMethod · 0.45
next_backMethod · 0.45

Calls 3

leaf_posMethod · 0.80
unwrap_leafMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected