Skip to main content

Module pyfunction

Module pyfunction 

Source

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 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