Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyO3/pyo3
/ pyfunction_with_module
Function
pyfunction_with_module
tests/test_module.rs:454–456 ·
view source on GitHub ↗
(module: &Bound<'py, PyModule>)
Source
from the content-addressed store, hash-verified
452
#[pyfunction]
453
#[pyo3(pass_module)]
454
fn pyfunction_with_module<
'py>(module: &Bound<'
py, PyModule>) -> PyResult<Bound<'py, PyString>> {
455
module.name()
456
}
457
458
#[pyfunction]
459
#[pyo3(pass_module)]
Callers
nothing calls this directly
Calls
1
name
Method · 0.45
Tested by
no test coverage detected