(self, other: impl PyExactSizeIterator<'a>, vm: &VirtualMachine)
| 3 | |
| 4 | pub trait PyExactSizeIterator<'a>: ExactSizeIterator<Item = &'a PyObjectRef> + Sized { |
| 5 | fn eq(self, other: impl PyExactSizeIterator<'a>, vm: &VirtualMachine) -> PyResult<bool> { |
| 6 | let lhs = self; |
| 7 | let rhs = other; |
| 8 | if lhs.len() != rhs.len() { |
| 9 | return Ok(false); |
| 10 | } |
| 11 | for (a, b) in lhs.zip_eq(rhs) { |
| 12 | if !vm.identical_or_equal(a, b)? { |
| 13 | return Ok(false); |
| 14 | } |
| 15 | } |
| 16 | Ok(true) |
| 17 | } |
| 18 | |
| 19 | fn richcompare( |
| 20 | self, |
nothing calls this directly
no test coverage detected