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

Method as_number

crates/vm/src/builtins/type.rs:2543–2549  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2541
2542impl AsNumber for PyType {
2543 fn as_number() -> &'static PyNumberMethods {
2544 static AS_NUMBER: PyNumberMethods = PyNumberMethods {
2545 or: Some(|a, b, vm| or_(a.to_owned(), b.to_owned(), vm)),
2546 ..PyNumberMethods::NOT_IMPLEMENTED
2547 };
2548 &AS_NUMBER
2549 }
2550}
2551
2552impl Representable for PyType {

Callers

nothing calls this directly

Calls 3

or_Function · 0.70
SomeClass · 0.50
to_ownedMethod · 0.45

Tested by

no test coverage detected