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

Method rich_compare

crates/vm/src/protocol/object.rs:30–32  ·  view source on GitHub ↗
(self, other: Self, op_id: PyComparisonOp, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

28
29 #[inline(always)]
30 pub fn rich_compare(self, other: Self, op_id: PyComparisonOp, vm: &VirtualMachine) -> PyResult {
31 self._cmp(&other, op_id, vm).map(|res| res.to_pyobject(vm))
32 }
33
34 pub fn bytes(self, vm: &VirtualMachine) -> PyResult {
35 let bytes_type = vm.ctx.types.bytes_type;

Callers 7

execute_compareMethod · 0.80
ltFunction · 0.80
leFunction · 0.80
gtFunction · 0.80
geFunction · 0.80
eqFunction · 0.80
neFunction · 0.80

Calls 3

mapMethod · 0.45
_cmpMethod · 0.45
to_pyobjectMethod · 0.45

Tested by

no test coverage detected