MCPcopy Index your code
hub / github.com/endbasic/endbasic / get_mut

Method get_mut

core/src/compiler/ids.rs:54–56  ·  view source on GitHub ↗

Gets mutable access to the value and identifier for a `key`. Returns `None` if the key is not present.

(&mut self, key: &K)

Source from the content-addressed store, hash-verified

52 ///
53 /// Returns `None` if the key is not present.
54 pub(super) fn get_mut(&mut self, key: &K) -> Option<(&mut V, I)> {
55 self.map.get_mut(key).map(|(v, i)| (v, *i))
56 }
57
58 /// Inserts the `key`/`value` pair into the hash map, assigning a new identifier
59 /// to the `key` if it does not yet have one.

Callers 3

fixup_local_typeMethod · 0.45
do_store_arrayMethod · 0.45

Calls

no outgoing calls

Tested by 1