Skip to main content

newfunc

Function newfunc 

Source
pub unsafe extern "C" fn newfunc<Meth: MethodDef<Func>>(
    subtype: *mut PyTypeObject,
    args: *mut PyObject,
    kwargs: *mut PyObject,
) -> *mut PyObject
Expand description

External symbol called by Python, which calls the provided Rust function.

The Rust function is supplied via the generic parameter Meth.

§Safety

The interpreter must be attached

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here