Trait pyo3::type_object::PyBorrowFlagLayout [−][src]
pub unsafe trait PyBorrowFlagLayout<T: PyTypeInfo>: PyLayout<T> + Sized { }Expand description
Marker type indicates that Self can be a base layout of PyClass.
Safety
Self should be laid out as follows:
ⓘ
#[repr(C)]
struct Self {
obj: ffi::PyObject,
borrow_flag: u64,
...
}Otherwise, implementing this trait is undefined behavior.
