Returns an iterator over this sequence of objects.
(self, vm: &VirtualMachine)
| 70 | impl PyIter<PyObjectRef> { |
| 71 | /// Returns an iterator over this sequence of objects. |
| 72 | pub fn into_iter<U>(self, vm: &VirtualMachine) -> PyResult<PyIterIter<'_, U, PyObjectRef>> { |
| 73 | let length_hint = vm.length_hint_opt(self.as_object().to_owned())?; |
| 74 | Ok(PyIterIter::new(vm, self.0, length_hint)) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | impl From<PyIter<Self>> for PyObjectRef { |