(&mut self)
| 440 | type Item = Option<PyStackRef>; |
| 441 | |
| 442 | fn next(&mut self) -> Option<Self::Item> { |
| 443 | if self.current >= self.end { |
| 444 | return None; |
| 445 | } |
| 446 | let idx = self.localsplus.nlocalsplus as usize + self.current; |
| 447 | let data = self.localsplus.data_as_mut_slice(); |
| 448 | let raw = core::mem::replace(&mut data[idx], 0); |
| 449 | self.current += 1; |
| 450 | Some(unsafe { core::mem::transmute::<usize, Option<PyStackRef>>(raw) }) |
| 451 | } |
| 452 | |
| 453 | fn size_hint(&self) -> (usize, Option<usize>) { |
| 454 | let remaining = self.end - self.current; |
no test coverage detected