(
zelf: &Py<Self>,
other: &PyObject,
op: PyComparisonOp,
vm: &VirtualMachine,
)
| 696 | |
| 697 | impl Comparable for PyByteArray { |
| 698 | fn cmp( |
| 699 | zelf: &Py<Self>, |
| 700 | other: &PyObject, |
| 701 | op: PyComparisonOp, |
| 702 | vm: &VirtualMachine, |
| 703 | ) -> PyResult<PyComparisonValue> { |
| 704 | if let Some(res) = op.identical_optimization(zelf, other) { |
| 705 | return Ok(res.into()); |
| 706 | } |
| 707 | Ok(zelf.inner().cmp(other, op, vm)) |
| 708 | } |
| 709 | } |
| 710 | |
| 711 | static BUFFER_METHODS: BufferMethods = BufferMethods { |
nothing calls this directly
no test coverage detected