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

Method value_mut

cranelift/bforest/src/path.rs:256–258  ·  view source on GitHub ↗

Get a mutable reference to the current value. This assumes that there is a current value.

(&self, pool: &'a mut NodePool<F>)

Source from the content-addressed store, hash-verified

254 /// Get a mutable reference to the current value.
255 /// This assumes that there is a current value.
256 pub fn value_mut<'a>(&self, pool: &'a mut NodePool<F>) -> &'a mut F::Value {
257 &mut pool[self.leaf_node()].unwrap_leaf_mut().1[self.leaf_entry()]
258 }
259
260 /// Insert the key-value pair at the current position.
261 /// The current position must be the correct insertion location for the key.

Callers

nothing calls this directly

Calls 3

unwrap_leaf_mutMethod · 0.80
leaf_nodeMethod · 0.80
leaf_entryMethod · 0.80

Tested by

no test coverage detected