(&mut self, ip: usize)
| 164 | } |
| 165 | |
| 166 | pub fn invalidate_inst(&mut self, ip: usize) { |
| 167 | if let Some(s) = self.slots.get_mut(ip) { s.inst = None; } |
| 168 | } |
| 169 | |
| 170 | /* GC root iterator for `InstanceCache` entries: yields the cached method Val and class Val so the collector keeps both alive while the cache holds them. */ |
| 171 | pub fn inst_roots(&self) -> impl Iterator<Item = Val> + '_ { |
no test coverage detected