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

Function plugin_api

examples/plugin/plugin_api/src/lib.rs:29–32  ·  view source on GitHub ↗
(m: &Bound<'_, PyModule>)

Source from the content-addressed store, hash-verified

27/// A Python module for plugin interface types
28#[pymodule]
29pub fn plugin_api(m: &Bound<'_, PyModule>) -> PyResult<()> {
30 m.add_class::<Gadget>()?;
31 Ok(())
32}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected