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

Method eval_ord

crates/vm/src/types/slot.rs:1867–1876  ·  view source on GitHub ↗
(self, ord: Ordering)

Source from the content-addressed store, hash-verified

1865 }
1866
1867 pub fn eval_ord(self, ord: Ordering) -> bool {
1868 match self {
1869 Self::Lt => ord == Ordering::Less,
1870 Self::Le => ord != Ordering::Greater,
1871 Self::Eq => ord == Ordering::Equal,
1872 Self::Ne => ord != Ordering::Equal,
1873 Self::Gt => ord == Ordering::Greater,
1874 Self::Ge => ord != Ordering::Less,
1875 }
1876 }
1877
1878 pub const fn swapped(self) -> Self {
1879 match self {

Callers 11

cmpMethod · 0.80
cmpMethod · 0.80
richcompareMethod · 0.80
execute_instructionMethod · 0.80
execute_compareMethod · 0.80
cmpMethod · 0.80
cmpMethod · 0.80
inner_cmpMethod · 0.80
cmpMethod · 0.80
cmpMethod · 0.80
compareMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected