MCPcopy Index your code
hub / github.com/dgrunwald/rust-cpython / f

Function f

tests/test_function.rs:9–11  ·  view source on GitHub ↗
(_py: Python)

Source from the content-addressed store, hash-verified

7 static CALL_COUNT: atomic::AtomicUsize = atomic::AtomicUsize::new(0);
8
9 fn f(_py: Python) -> PyResult<usize> {
10 Ok(CALL_COUNT.fetch_add(1, Relaxed))
11 }
12
13 let gil = Python::acquire_gil();
14 let py = gil.python();

Callers 10

allow_threadsMethod · 0.85
mapMethod · 0.85
handle_callbackFunction · 0.85
with_borrowed_ptrMethod · 0.85
with_extractedMethod · 0.85
with_extractedMethod · 0.85
with_borrowed_ptrMethod · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected