pub unsafe trait PyLayout<T> { }
Expand description

T: PyLayout<U> represents that T is a concrete representation of U in the Python heap. E.g., PyCell is a concrete representaion of all pyclasses, and ffi::PyObject is of PyAny.

This trait is intended to be used internally.

Safety

Implementations must provide an implementation for type_object_raw which infallibly produces a non-null pointer to the corresponding Python type object.

Implementors