Iterate over all live (handle, &mut T) pairs.
(&mut self)
| 69 | |
| 70 | /// Iterate over all live (handle, &mut T) pairs. |
| 71 | pub fn iter_mut(&mut self) -> impl Iterator<Item = (f64, &mut T)> { |
| 72 | self.items.iter_mut().enumerate().filter_map(|(idx, slot)| { |
| 73 | slot.as_mut().map(|item| ((idx + 1) as f64, item)) |
| 74 | }) |
| 75 | } |
| 76 | } |
no outgoing calls
no test coverage detected