pyo3::impl_::pyclass

Function free_with_freelist

Source
pub unsafe extern "C" fn free_with_freelist<T: PyClassWithFreeList>(
    obj: *mut c_void,
)
Expand description

Implementation of tp_free for freelist classes.

§Safety

  • obj must be a valid pointer to an instance of T (not a subclass).
  • The GIL must be held.
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here