(
zelf: &Py<Self>,
other: &crate::PyObject,
op: PyComparisonOp,
_vm: &VirtualMachine,
)
| 77 | |
| 78 | impl Comparable for PyNone { |
| 79 | fn cmp( |
| 80 | zelf: &Py<Self>, |
| 81 | other: &crate::PyObject, |
| 82 | op: PyComparisonOp, |
| 83 | _vm: &VirtualMachine, |
| 84 | ) -> PyResult<PyComparisonValue> { |
| 85 | Ok(op |
| 86 | .identical_optimization(zelf, other) |
| 87 | .map(PyComparisonValue::Implemented) |
| 88 | .unwrap_or(PyComparisonValue::NotImplemented)) |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | impl Hashable for PyNone { |
nothing calls this directly
no test coverage detected