Trait pyo3::type_object::PyLayout

source ·
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., PyClassObject is a concrete representation of all pyclasses, and ffi::PyObject is of PyAny.

This trait is intended to be used internally.

§Safety

This trait must only be implemented for types which represent valid layouts of Python objects.

Implementors§

source§

impl PyLayout<PyArithmeticError> for PyBaseExceptionObject

source§

impl PyLayout<PyAssertionError> for PyBaseExceptionObject

source§

impl PyLayout<PyAttributeError> for PyBaseExceptionObject

source§

impl PyLayout<PyBaseException> for PyBaseExceptionObject

source§

impl PyLayout<PyBlockingIOError> for PyBaseExceptionObject

source§

impl PyLayout<PyBrokenPipeError> for PyBaseExceptionObject

source§

impl PyLayout<PyBufferError> for PyBaseExceptionObject

source§

impl PyLayout<PyBytesWarning> for PyBaseExceptionObject

source§

impl PyLayout<PyChildProcessError> for PyBaseExceptionObject

source§

impl PyLayout<PyConnectionAbortedError> for PyBaseExceptionObject

source§

impl PyLayout<PyConnectionError> for PyBaseExceptionObject

source§

impl PyLayout<PyConnectionRefusedError> for PyBaseExceptionObject

source§

impl PyLayout<PyConnectionResetError> for PyBaseExceptionObject

source§

impl PyLayout<PyDeprecationWarning> for PyBaseExceptionObject

source§

impl PyLayout<PyEOFError> for PyBaseExceptionObject

source§

impl PyLayout<PyEncodingWarning> for PyBaseExceptionObject

source§

impl PyLayout<PyEnvironmentError> for PyBaseExceptionObject

source§

impl PyLayout<PyException> for PyBaseExceptionObject

source§

impl PyLayout<PyFileExistsError> for PyBaseExceptionObject

source§

impl PyLayout<PyFileNotFoundError> for PyBaseExceptionObject

source§

impl PyLayout<PyFloatingPointError> for PyBaseExceptionObject

source§

impl PyLayout<PyFutureWarning> for PyBaseExceptionObject

source§

impl PyLayout<PyGeneratorExit> for PyBaseExceptionObject

source§

impl PyLayout<PyIOError> for PyBaseExceptionObject

source§

impl PyLayout<PyImportError> for PyBaseExceptionObject

source§

impl PyLayout<PyImportWarning> for PyBaseExceptionObject

source§

impl PyLayout<PyIndexError> for PyBaseExceptionObject

source§

impl PyLayout<PyInterruptedError> for PyBaseExceptionObject

source§

impl PyLayout<PyIsADirectoryError> for PyBaseExceptionObject

source§

impl PyLayout<PyKeyError> for PyBaseExceptionObject

source§

impl PyLayout<PyKeyboardInterrupt> for PyBaseExceptionObject

source§

impl PyLayout<PyLookupError> for PyBaseExceptionObject

source§

impl PyLayout<PyMemoryError> for PyBaseExceptionObject

source§

impl PyLayout<PyModuleNotFoundError> for PyBaseExceptionObject

source§

impl PyLayout<PyNameError> for PyBaseExceptionObject

source§

impl PyLayout<PyNotADirectoryError> for PyBaseExceptionObject

source§

impl PyLayout<PyNotImplementedError> for PyBaseExceptionObject

source§

impl PyLayout<PyOSError> for PyOSErrorObject

source§

impl PyLayout<PyOverflowError> for PyBaseExceptionObject

source§

impl PyLayout<PyPendingDeprecationWarning> for PyBaseExceptionObject

source§

impl PyLayout<PyPermissionError> for PyBaseExceptionObject

source§

impl PyLayout<PyProcessLookupError> for PyBaseExceptionObject

source§

impl PyLayout<PyRecursionError> for PyBaseExceptionObject

source§

impl PyLayout<PyReferenceError> for PyBaseExceptionObject

source§

impl PyLayout<PyResourceWarning> for PyBaseExceptionObject

source§

impl PyLayout<PyRuntimeError> for PyBaseExceptionObject

source§

impl PyLayout<PyRuntimeWarning> for PyBaseExceptionObject

source§

impl PyLayout<PyStopAsyncIteration> for PyBaseExceptionObject

source§

impl PyLayout<PyStopIteration> for PyStopIterationObject

source§

impl PyLayout<PySyntaxError> for PySyntaxErrorObject

source§

impl PyLayout<PySyntaxWarning> for PyBaseExceptionObject

source§

impl PyLayout<PySystemError> for PyBaseExceptionObject

source§

impl PyLayout<PySystemExit> for PySystemExitObject

source§

impl PyLayout<PyTimeoutError> for PyBaseExceptionObject

source§

impl PyLayout<PyTypeError> for PyBaseExceptionObject

source§

impl PyLayout<PyUnboundLocalError> for PyBaseExceptionObject

source§

impl PyLayout<PyUnicodeDecodeError> for PyBaseExceptionObject

source§

impl PyLayout<PyUnicodeEncodeError> for PyBaseExceptionObject

source§

impl PyLayout<PyUnicodeError> for PyUnicodeErrorObject

source§

impl PyLayout<PyUnicodeTranslateError> for PyBaseExceptionObject

source§

impl PyLayout<PyUnicodeWarning> for PyBaseExceptionObject

source§

impl PyLayout<PyUserWarning> for PyBaseExceptionObject

source§

impl PyLayout<PyValueError> for PyBaseExceptionObject

source§

impl PyLayout<PyWarning> for PyBaseExceptionObject

source§

impl PyLayout<PyZeroDivisionError> for PyBaseExceptionObject

source§

impl PyLayout<PyAny> for PyObject

source§

impl PyLayout<PyBool> for PyObject

source§

impl PyLayout<PyComplex> for PyComplexObject

source§

impl PyLayout<PyDate> for PyDateTime_Date

Available on non-Py_LIMITED_API only.
source§

impl PyLayout<PyDateTime> for PyDateTime_DateTime

Available on non-Py_LIMITED_API only.
source§

impl PyLayout<PyDelta> for PyDateTime_Delta

Available on non-Py_LIMITED_API only.
source§

impl PyLayout<PyDict> for PyDictObject

source§

impl PyLayout<PyFloat> for PyFloatObject

source§

impl PyLayout<PyFrozenSet> for PySetObject

source§

impl PyLayout<PySet> for PySetObject

source§

impl PyLayout<PySlice> for PySliceObject

source§

impl PyLayout<PyTime> for PyDateTime_Time

Available on non-Py_LIMITED_API only.
source§

impl PyLayout<PyTzInfo> for PyObject

Available on non-Py_LIMITED_API only.
source§

impl<T: PyClassImpl> PyLayout<T> for PyCell<T>