Trait pyo3::pycell::impl_::PyClassObjectLayout

source ·
#[doc(hidden)] pub trait PyClassObjectLayout<T>: PyLayout<T> {
    // Required methods
    fn ensure_threadsafe(&self);
    fn check_threadsafe(&self) -> Result<(), PyBorrowError>;
    unsafe fn tp_dealloc(py: Python<'_>, slf: *mut PyObject);
}

Required Methods§

source

fn ensure_threadsafe(&self)

source

fn check_threadsafe(&self) -> Result<(), PyBorrowError>

source

unsafe fn tp_dealloc(py: Python<'_>, slf: *mut PyObject)

Implementation of tp_dealloc.

§Safety
  • slf must be a valid pointer to an instance of a T or a subclass.
  • slf must not be used after this call (as it will be freed).

Object Safety§

This trait is not object safe.

Implementors§

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