Skip to main content

setattrofunc

Function setattrofunc 

Source
pub unsafe extern "C" fn setattrofunc<Meth: MethodDef<Func>>(
    slf: *mut PyObject,
    attr: *mut PyObject,
    value: *mut PyObject,
) -> c_int
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