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

Method get_mut

cranelift/entity/src/map.rs:110–112  ·  view source on GitHub ↗

Get the element at `k` mutably, if it exists.

(&mut self, k: K)

Source from the content-addressed store, hash-verified

108
109 /// Get the element at `k` mutably, if it exists.
110 pub fn get_mut(&mut self, k: K) -> Option<&mut V> {
111 self.elems.get_mut(k.index())
112 }
113
114 /// Insert the given key-value pair, returning the old value if it exists.
115 pub fn insert(&mut self, k: K, v: V) -> Option<V> {

Callers 8

solve_constraintsFunction · 0.45
find_mutMethod · 0.45
mergeMethod · 0.45
reportMethod · 0.45
try_inner_insertMethod · 0.45
try_leaf_insertMethod · 0.45
value_mutMethod · 0.45
basicFunction · 0.45

Calls 1

indexMethod · 0.45

Tested by 1

basicFunction · 0.36