(&mut self, key: K)
| 121 | #[inline] |
| 122 | #[track_caller] |
| 123 | pub fn get_mut(&mut self, key: K) -> Option<&mut V> { |
| 124 | let entry = self.dense.get_mut(self.sparse[key] as usize)?; |
| 125 | if entry.0 == key { |
| 126 | return Some(&mut entry.1); |
| 127 | } |
| 128 | None |
| 129 | } |
| 130 | |
| 131 | /// Return the index into `dense` of the value corresponding to `key`. |
| 132 | #[inline] |
no outgoing calls
no test coverage detected