MCPcopy Create free account
hub / github.com/PyO3/pyo3 / function_with_pyfunction_arg

Function function_with_pyfunction_arg

tests/test_pyfunction.rs:163–165  ·  view source on GitHub ↗
(fun: &Bound<'py, PyFunction>)

Source from the content-addressed store, hash-verified

161#[cfg(not(PyPy))]
162#[pyfunction]
163fn function_with_pyfunction_arg<'py>(fun: &Bound<'py, PyFunction>) -> PyResult<Bound<'py, PyAny>> {
164 fun.call((), None)
165}
166
167#[pyfunction]
168fn function_with_pycfunction_arg<'py>(

Callers

nothing calls this directly

Calls 1

callMethod · 0.45

Tested by

no test coverage detected