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

Method swapped

crates/vm/src/types/slot.rs:1878–1887  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1876 }
1877
1878 pub const fn swapped(self) -> Self {
1879 match self {
1880 Self::Lt => Self::Gt,
1881 Self::Le => Self::Ge,
1882 Self::Eq => Self::Eq,
1883 Self::Ne => Self::Ne,
1884 Self::Ge => Self::Le,
1885 Self::Gt => Self::Lt,
1886 }
1887 }
1888
1889 pub fn method_name(self, ctx: &Context) -> &'static PyStrInterned {
1890 match self {

Callers 1

_cmp_innerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected