(zelf: &Py<Self>, vm: &VirtualMachine)
| 1212 | impl SelfIter for PyMemoryViewIterator {} |
| 1213 | impl IterNext for PyMemoryViewIterator { |
| 1214 | fn next(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<PyIterReturn> { |
| 1215 | zelf.internal.lock().next(|mv, pos| { |
| 1216 | let len = mv.__len__(vm)?; |
| 1217 | Ok(if pos >= len { |
| 1218 | PyIterReturn::StopIteration(None) |
| 1219 | } else { |
| 1220 | PyIterReturn::Return(mv.getitem_by_idx(pos.try_into().unwrap(), vm)?) |
| 1221 | }) |
| 1222 | }) |
| 1223 | } |
| 1224 | } |
nothing calls this directly
no test coverage detected