(zelf: &Py<Self>, vm: &VirtualMachine)
| 895 | impl SelfIter for PyByteArrayIterator {} |
| 896 | impl IterNext for PyByteArrayIterator { |
| 897 | fn next(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<PyIterReturn> { |
| 898 | zelf.internal.lock().next(|bytearray, pos| { |
| 899 | let buf = bytearray.borrow_buf(); |
| 900 | Ok(PyIterReturn::from_result( |
| 901 | buf.get(pos).map(|&x| vm.new_pyobj(x)).ok_or(None), |
| 902 | )) |
| 903 | }) |
| 904 | } |
| 905 | } |
nothing calls this directly
no test coverage detected