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§
type LayoutAsBase: PyClassObjectLayout<Self>
type BaseNativeType
type Initializer: PyObjectInit<Self>
type PyClassMutability: PyClassMutability
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl PyClassBaseType for PyArithmeticError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyArithmeticError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyAssertionError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyAssertionError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyAttributeError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyAttributeError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyBaseException
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyBaseException
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyBlockingIOError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyBlockingIOError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyBrokenPipeError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyBrokenPipeError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyBufferError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyBufferError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyBytesWarning
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyBytesWarning
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyChildProcessError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyChildProcessError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyConnectionAbortedError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyConnectionAbortedError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyConnectionError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyConnectionError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyConnectionRefusedError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyConnectionRefusedError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyConnectionResetError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyConnectionResetError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyDeprecationWarning
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyDeprecationWarning
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyEOFError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyEOFError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyEnvironmentError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyEnvironmentError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyException
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyException
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyFileExistsError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyFileExistsError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyFileNotFoundError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyFileNotFoundError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyFloatingPointError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyFloatingPointError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyFutureWarning
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyFutureWarning
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyGeneratorExit
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyGeneratorExit
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyIOError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyIOError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyImportError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyImportError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyImportWarning
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyImportWarning
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyIndexError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyIndexError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyInterruptedError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyInterruptedError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyIsADirectoryError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyIsADirectoryError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyKeyError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyKeyError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyKeyboardInterrupt
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyKeyboardInterrupt
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyLookupError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyLookupError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyMemoryError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyMemoryError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyModuleNotFoundError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyModuleNotFoundError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyNameError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyNameError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyNotADirectoryError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyNotADirectoryError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyNotImplementedError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyNotImplementedError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyOSError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyOSError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyOverflowError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyOverflowError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyPendingDeprecationWarning
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyPendingDeprecationWarning
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyPermissionError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyPermissionError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyProcessLookupError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyProcessLookupError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyRecursionError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyRecursionError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyReferenceError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyReferenceError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyResourceWarning
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyResourceWarning
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyRuntimeError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyRuntimeError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyRuntimeWarning
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyRuntimeWarning
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyStopAsyncIteration
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyStopAsyncIteration
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyStopIteration
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyStopIteration
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PySyntaxError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PySyntaxError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PySyntaxWarning
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PySyntaxWarning
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PySystemError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PySystemError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PySystemExit
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PySystemExit
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyTimeoutError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyTimeoutError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyTypeError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyTypeError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyUnboundLocalError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyUnboundLocalError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyUnicodeDecodeError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyUnicodeDecodeError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyUnicodeEncodeError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyUnicodeEncodeError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyUnicodeError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyUnicodeError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyUnicodeTranslateError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyUnicodeTranslateError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyUnicodeWarning
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyUnicodeWarning
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyUserWarning
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyUserWarning
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyValueError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyValueError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyWarning
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyWarning
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyZeroDivisionError
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyZeroDivisionError
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyAny
impl PyClassBaseType for PyAny
Source§impl PyClassBaseType for PyComplex
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyComplex
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyDate
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyDate
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyDateTime
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyDateTime
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyDelta
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyDelta
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyTime
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyTime
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyTzInfo
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyTzInfo
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyDict
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyDict
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyFloat
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyFloat
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyFrozenSet
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyFrozenSet
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PySet
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PySet
Available on non-
Py_LIMITED_API
only.Source§impl PyClassBaseType for PyWeakrefReference
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyWeakrefReference
Available on non-
Py_LIMITED_API
only.