# pyo3::type_object::PyBorrowFlagLayout - Rust
Marker type indicates that `Self` can be a base layout of `PyClass`.
Keywords: rust, rustlang, rust-lang, PyBorrowFlagLayout

# Trait pyo3::type_object::PyBorrowFlagLayout [−] [src]

    pub unsafe trait PyBorrowFlagLayout<T: PyTypeInfo>: PyLayout<T> + Sized { }

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.

## Implementors

Loading content...