pyo3::impl_::pyclass

Trait 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§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

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