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

Method cmp

crates/vm/src/builtins/dict.rs:570–580  ·  view source on GitHub ↗
(
        zelf: &Py<Self>,
        other: &PyObject,
        op: PyComparisonOp,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

568
569impl Comparable for PyDict {
570 fn cmp(
571 zelf: &Py<Self>,
572 other: &PyObject,
573 op: PyComparisonOp,
574 vm: &VirtualMachine,
575 ) -> PyResult<PyComparisonValue> {
576 op.eq_only(|| {
577 let other = class_or_notimplemented!(Self, other);
578 zelf.inner_cmp(other, PyComparisonOp::Eq, true, vm)
579 })
580 }
581}
582
583impl Iterable for PyDict {

Callers 1

inner_cmpMethod · 0.45

Calls 3

cmpFunction · 0.85
eq_onlyMethod · 0.80
inner_cmpMethod · 0.80

Tested by

no test coverage detected