#[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§
fn ensure_threadsafe(&self)
fn check_threadsafe(&self) -> Result<(), PyBorrowError>
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.