Trait pyo3::impl_::pyclass::PyClassWithFreeList

source ·
pub trait PyClassWithFreeList: PyClass {
    // Required method
    fn get_free_list(py: Python<'_>) -> &mut FreeList<*mut PyObject>;
}
Expand description

Implements a freelist.

Do not implement this trait manually. Instead, use #[pyclass(freelist = N)] on a Rust struct to implement it.

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§

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