(&self, vm: &VirtualMachine)
| 53 | impl PyMap { |
| 54 | #[pymethod] |
| 55 | fn __length_hint__(&self, vm: &VirtualMachine) -> PyResult<usize> { |
| 56 | self.iterators.iter().try_fold(0, |prev, cur| { |
| 57 | let cur = cur.as_ref().to_owned().length_hint(0, vm)?; |
| 58 | let max = core::cmp::max(prev, cur); |
| 59 | Ok(max) |
| 60 | }) |
| 61 | } |
| 62 | |
| 63 | #[pymethod] |
| 64 | fn __reduce__(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyResult<PyTupleRef> { |
nothing calls this directly
no test coverage detected