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

Method value

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

Source from the content-addressed store, hash-verified

352 }
353
354 fn value(&self, pool: &NodePool<MapTypes<K, V>>) -> Option<V> {
355 self.path
356 .leaf_pos()
357 .and_then(|(node, entry)| pool[node].unwrap_leaf().1.get(entry).cloned())
358 }
359
360 fn value_mut<'a>(&self, pool: &'a mut NodePool<MapTypes<K, V>>) -> Option<&'a mut V> {
361 self.path

Callers 3

removeMethod · 0.45
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