MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / get

Method get

src/entity/sparse.rs:109–115  ·  view source on GitHub ↗
(&self, key: K)

Source from the content-addressed store, hash-verified

107 #[inline]
108 #[track_caller]
109 pub fn get(&self, key: K) -> Option<&V> {
110 let entry = self.dense.get(self.sparse[key] as usize)?;
111 if entry.0 == key {
112 return Some(&entry.1);
113 }
114 None
115 }
116
117 /// Returns a mutable reference to the value corresponding to the key.
118 ///

Callers 15

add_moveMethod · 0.45
resolveMethod · 0.45
hints_for_splitMethod · 0.45
resolve_movesMethod · 0.45
from_intMethod · 0.45
propagate_to_succsMethod · 0.45
process_editMethod · 0.45
indirect_remat_inputsMethod · 0.45
optimize_editMethod · 0.45
optimize_blockMethod · 0.45
advance_rightMethod · 0.45
merge_useMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected