Re-exportsยง
use core::cell::UnsafeCell;๐use crate::Borrowed;๐use crate::Bound;๐use crate::PyResult;๐use crate::Python;๐use crate::ffi;๐use crate::ffi_ptr_ext::FfiPtrExt;๐use crate::py_result_ext::PyResultExt;๐use crate::types::PyCFunction;๐use crate::types::PyModule;๐use crate::types::PyModuleMethods;๐pub use crate::impl_::pymethods::PyMethodDef;
Modulesยง
- wrap_
pyfunctionarg ๐ - Seals
WrapPyFunctionArgso that types outside PyO3 cannot implement it.
Structsยง
- PyFunction
Def - Wrapper around
ffi::PyMethodDefsuitable to use as a static variable for#[pyfunction]values.
Traitsยง
- Wrap
PyFunction Arg - Trait to enable the use of
wrap_pyfunctionwith bothPythonandPyModule, and also to infer the return type of either&'py PyCFunctionorBound<'py, PyCFunction>.
Functionsยง
- create_
py_ โc_ function - Creates a
PyCFunctionobject from aPyMethodDef.