(
zelf: &crate::Py<Self>,
other: &PyObject,
op: PyComparisonOp,
vm: &VirtualMachine,
)
| 803 | |
| 804 | impl Comparable for PySet { |
| 805 | fn cmp( |
| 806 | zelf: &crate::Py<Self>, |
| 807 | other: &PyObject, |
| 808 | op: PyComparisonOp, |
| 809 | vm: &VirtualMachine, |
| 810 | ) -> PyResult<PyComparisonValue> { |
| 811 | extract_set(other).map_or(Ok(PyComparisonValue::NotImplemented), |other| { |
| 812 | Ok(zelf.inner.compare(other, op, vm)?.into()) |
| 813 | }) |
| 814 | } |
| 815 | } |
| 816 | |
| 817 | impl Iterable for PySet { |
no test coverage detected