Iterate over all the entries in this table.
(&mut self)
| 407 | |
| 408 | /// Iterate over all the entries in this table. |
| 409 | pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut (dyn Any + Send)> { |
| 410 | self.entries.iter_mut().filter_map(|entry| match entry { |
| 411 | Entry::Occupied { entry } => Some(&mut *entry.entry), |
| 412 | Entry::Free { .. } => None, |
| 413 | }) |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | impl Default for ResourceTable { |
no outgoing calls
no test coverage detected