⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here
pub trait PyCellLayout<T>: PyLayout<T> {
    fn get_borrow_flag(&self) -> BorrowFlag;
fn set_borrow_flag(&self, flag: BorrowFlag);
unsafe fn tp_dealloc(slf: *mut PyObject, py: Python<'_>); }

Required methods

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).

Implementors