(self, vm: &VirtualMachine)
| 202 | |
| 203 | impl ToPyResult for PyIterReturn { |
| 204 | fn to_pyresult(self, vm: &VirtualMachine) -> PyResult { |
| 205 | match self { |
| 206 | Self::Return(obj) => Ok(obj), |
| 207 | Self::StopIteration(v) => Err(vm.new_stop_iteration(v)), |
| 208 | } |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | impl ToPyResult for PyResult<PyIterReturn> { |
no test coverage detected