pyo3::impl_::pymethods

Function tp_new_impl

Source
pub unsafe fn tp_new_impl<T: PyClass>(
    py: Python<'_>,
    initializer: PyClassInitializer<T>,
    target_type: *mut PyTypeObject,
) -> PyResult<*mut PyObject>
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here