pyo3::class::methods

Type Alias PyMethodType

Source
pub type PyMethodType = PyMethodType;
👎Deprecated since 0.23.0: PyO3 implementation detail

Aliased Type§

enum PyMethodType {
    PyCFunction(unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject) -> *mut PyObject),
    PyCFunctionWithKeywords(unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> *mut PyObject),
    PyCFunctionFastWithKeywords(unsafe extern "C" fn(_: *mut PyObject, _: *const *mut PyObject, _: isize, _: *mut PyObject) -> *mut PyObject),
}

Variants§

§

PyCFunction(unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject) -> *mut PyObject)

§

PyCFunctionWithKeywords(unsafe extern "C" fn(_: *mut PyObject, _: *mut PyObject, _: *mut PyObject) -> *mut PyObject)

§

PyCFunctionFastWithKeywords(unsafe extern "C" fn(_: *mut PyObject, _: *const *mut PyObject, _: isize, _: *mut PyObject) -> *mut PyObject)

Available on Py_3_10 or non-Py_LIMITED_API only.
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here