Trait pyo3::impl_::pyclass::PyClassBaseType

source ·
pub trait PyClassBaseType: Sized {
    type LayoutAsBase: PyClassObjectLayout<Self>;
    type BaseNativeType;
    type Initializer: PyObjectInit<Self>;
    type PyClassMutability: PyClassMutability;
}
Expand description

Trait denoting that this class is suitable to be used as a base type for PyClass.

Required Associated Types§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl PyClassBaseType for PyArithmeticError

source§

impl PyClassBaseType for PyAssertionError

source§

impl PyClassBaseType for PyAttributeError

source§

impl PyClassBaseType for PyBaseException

source§

impl PyClassBaseType for PyBlockingIOError

source§

impl PyClassBaseType for PyBrokenPipeError

source§

impl PyClassBaseType for PyBufferError

source§

impl PyClassBaseType for PyBytesWarning

source§

impl PyClassBaseType for PyChildProcessError

source§

impl PyClassBaseType for PyConnectionAbortedError

source§

impl PyClassBaseType for PyConnectionError

source§

impl PyClassBaseType for PyConnectionRefusedError

source§

impl PyClassBaseType for PyConnectionResetError

source§

impl PyClassBaseType for PyDeprecationWarning

source§

impl PyClassBaseType for PyEOFError

source§

impl PyClassBaseType for PyEnvironmentError

source§

impl PyClassBaseType for PyException

source§

impl PyClassBaseType for PyFileExistsError

source§

impl PyClassBaseType for PyFileNotFoundError

source§

impl PyClassBaseType for PyFloatingPointError

source§

impl PyClassBaseType for PyFutureWarning

source§

impl PyClassBaseType for PyGeneratorExit

source§

impl PyClassBaseType for PyIOError

source§

impl PyClassBaseType for PyImportError

source§

impl PyClassBaseType for PyImportWarning

source§

impl PyClassBaseType for PyIndexError

source§

impl PyClassBaseType for PyInterruptedError

source§

impl PyClassBaseType for PyIsADirectoryError

source§

impl PyClassBaseType for PyKeyError

source§

impl PyClassBaseType for PyKeyboardInterrupt

source§

impl PyClassBaseType for PyLookupError

source§

impl PyClassBaseType for PyMemoryError

source§

impl PyClassBaseType for PyModuleNotFoundError

source§

impl PyClassBaseType for PyNameError

source§

impl PyClassBaseType for PyNotADirectoryError

source§

impl PyClassBaseType for PyNotImplementedError

source§

impl PyClassBaseType for PyOSError

source§

impl PyClassBaseType for PyOverflowError

source§

impl PyClassBaseType for PyPendingDeprecationWarning

source§

impl PyClassBaseType for PyPermissionError

source§

impl PyClassBaseType for PyProcessLookupError

source§

impl PyClassBaseType for PyRecursionError

source§

impl PyClassBaseType for PyReferenceError

source§

impl PyClassBaseType for PyResourceWarning

source§

impl PyClassBaseType for PyRuntimeError

source§

impl PyClassBaseType for PyRuntimeWarning

source§

impl PyClassBaseType for PyStopAsyncIteration

source§

impl PyClassBaseType for PyStopIteration

source§

impl PyClassBaseType for PySyntaxError

source§

impl PyClassBaseType for PySyntaxWarning

source§

impl PyClassBaseType for PySystemError

source§

impl PyClassBaseType for PySystemExit

source§

impl PyClassBaseType for PyTimeoutError

source§

impl PyClassBaseType for PyTypeError

source§

impl PyClassBaseType for PyUnboundLocalError

source§

impl PyClassBaseType for PyUnicodeDecodeError

source§

impl PyClassBaseType for PyUnicodeEncodeError

source§

impl PyClassBaseType for PyUnicodeError

source§

impl PyClassBaseType for PyUnicodeTranslateError

source§

impl PyClassBaseType for PyUnicodeWarning

source§

impl PyClassBaseType for PyUserWarning

source§

impl PyClassBaseType for PyValueError

source§

impl PyClassBaseType for PyWarning

source§

impl PyClassBaseType for PyZeroDivisionError

source§

impl PyClassBaseType for PyAny

source§

impl PyClassBaseType for PyBool

source§

impl PyClassBaseType for PyComplex

source§

impl PyClassBaseType for PyDate

Available on non-Py_LIMITED_API only.
source§

impl PyClassBaseType for PyDateTime

Available on non-Py_LIMITED_API only.
source§

impl PyClassBaseType for PyDelta

Available on non-Py_LIMITED_API only.
source§

impl PyClassBaseType for PyTime

Available on non-Py_LIMITED_API only.
source§

impl PyClassBaseType for PyTzInfo

Available on non-Py_LIMITED_API only.
source§

impl PyClassBaseType for PyDict

source§

impl PyClassBaseType for PyFloat

source§

impl PyClassBaseType for PyFrozenSet

source§

impl PyClassBaseType for PySet

source§

impl PyClassBaseType for PySlice

source§

impl<T: PyClass> PyClassBaseType for T

All mutable PyClasses can be used as a base type.

In the future this will be extended to immutable PyClasses too.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here