Function pyo3::gil::register_owned
source · pub unsafe fn register_owned(_py: Python<'_>, obj: NonNull<PyObject>)
Expand description
Registers an owned object inside the GILPool, to be released when the GILPool drops.
§Safety
The object must be an owned Python reference.