MCPcopy Index your code
hub / github.com/RustPython/RustPython / slot_richcompare

Method slot_richcompare

crates/vm/src/builtins/object.rs:309–316  ·  view source on GitHub ↗
(
        zelf: &PyObject,
        other: &PyObject,
        op: PyComparisonOp,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

307
308 #[pyslot]
309 fn slot_richcompare(
310 zelf: &PyObject,
311 other: &PyObject,
312 op: PyComparisonOp,
313 vm: &VirtualMachine,
314 ) -> PyResult<Either<PyObjectRef, PyComparisonValue>> {
315 Self::cmp(zelf, other, op, vm).map(Either::B)
316 }
317
318 #[inline(always)]
319 fn cmp(

Callers

nothing calls this directly

Calls 2

cmpFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected