Skip to main content

Module pyfunction

Module pyfunction 

Source

Re-exports§

pub use crate::impl_::pymethods::PyMethodDef;

Modules§

wrap_pyfunctionarg 🔒
Seals WrapPyFunctionArg so that types outside PyO3 cannot implement it.

Structs§

PyFunctionDef
Wrapper around ffi::PyMethodDef suitable to use as a static variable for #[pyfunction] values.

Traits§

WrapPyFunctionArg
Trait to enable the use of wrap_pyfunction with both Python and PyModule, and also to infer the return type of either &'py PyCFunction or Bound<'py, PyCFunction>.

Functions§

create_py_c_function
Creates a PyCFunction object from a PyMethodDef.
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here