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

Method value_mut

cranelift/bforest/src/map.rs:360–364  ·  view source on GitHub ↗
(&self, pool: &'a mut NodePool<MapTypes<K, V>>)

Source from the content-addressed store, hash-verified

358 }
359
360 fn value_mut<'a>(&self, pool: &'a mut NodePool<MapTypes<K, V>>) -> Option<&'a mut V> {
361 self.path
362 .leaf_pos()
363 .and_then(move |(node, entry)| pool[node].unwrap_leaf_mut().1.get_mut(entry))
364 }
365
366 fn goto(
367 &mut self,

Callers 1

try_insertMethod · 0.45

Calls 3

leaf_posMethod · 0.80
unwrap_leaf_mutMethod · 0.80
get_mutMethod · 0.45

Tested by

no test coverage detected