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

Method method_name

crates/vm/src/types/slot.rs:1889–1898  ·  view source on GitHub ↗
(self, ctx: &Context)

Source from the content-addressed store, hash-verified

1887 }
1888
1889 pub fn method_name(self, ctx: &Context) -> &'static PyStrInterned {
1890 match self {
1891 Self::Lt => identifier!(ctx, __lt__),
1892 Self::Le => identifier!(ctx, __le__),
1893 Self::Eq => identifier!(ctx, __eq__),
1894 Self::Ne => identifier!(ctx, __ne__),
1895 Self::Ge => identifier!(ctx, __ge__),
1896 Self::Gt => identifier!(ctx, __gt__),
1897 }
1898 }
1899
1900 pub const fn operator_token(self) -> &'static str {
1901 match self {

Callers 1

richcompare_wrapperFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected