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§
type LayoutAsBase: PyClassObjectLayout<Self>
type BaseNativeType
type Initializer: PyObjectInit<Self>
type PyClassMutability: PyClassMutability
Object Safety§
This trait is not object safe.
Implementors§
source§impl PyClassBaseType for PyArithmeticError
impl PyClassBaseType for PyArithmeticError
source§impl PyClassBaseType for PyAssertionError
impl PyClassBaseType for PyAssertionError
source§impl PyClassBaseType for PyAttributeError
impl PyClassBaseType for PyAttributeError
source§impl PyClassBaseType for PyBaseException
impl PyClassBaseType for PyBaseException
source§impl PyClassBaseType for PyBlockingIOError
impl PyClassBaseType for PyBlockingIOError
source§impl PyClassBaseType for PyBrokenPipeError
impl PyClassBaseType for PyBrokenPipeError
source§impl PyClassBaseType for PyBufferError
impl PyClassBaseType for PyBufferError
source§impl PyClassBaseType for PyBytesWarning
impl PyClassBaseType for PyBytesWarning
source§impl PyClassBaseType for PyConnectionError
impl PyClassBaseType for PyConnectionError
source§impl PyClassBaseType for PyEOFError
impl PyClassBaseType for PyEOFError
source§impl PyClassBaseType for PyEnvironmentError
impl PyClassBaseType for PyEnvironmentError
source§impl PyClassBaseType for PyException
impl PyClassBaseType for PyException
source§impl PyClassBaseType for PyFileExistsError
impl PyClassBaseType for PyFileExistsError
source§impl PyClassBaseType for PyFutureWarning
impl PyClassBaseType for PyFutureWarning
source§impl PyClassBaseType for PyGeneratorExit
impl PyClassBaseType for PyGeneratorExit
source§impl PyClassBaseType for PyIOError
impl PyClassBaseType for PyIOError
source§impl PyClassBaseType for PyImportError
impl PyClassBaseType for PyImportError
source§impl PyClassBaseType for PyImportWarning
impl PyClassBaseType for PyImportWarning
source§impl PyClassBaseType for PyIndexError
impl PyClassBaseType for PyIndexError
source§impl PyClassBaseType for PyInterruptedError
impl PyClassBaseType for PyInterruptedError
source§impl PyClassBaseType for PyKeyError
impl PyClassBaseType for PyKeyError
source§impl PyClassBaseType for PyLookupError
impl PyClassBaseType for PyLookupError
source§impl PyClassBaseType for PyMemoryError
impl PyClassBaseType for PyMemoryError
source§impl PyClassBaseType for PyNameError
impl PyClassBaseType for PyNameError
source§impl PyClassBaseType for PyOSError
impl PyClassBaseType for PyOSError
source§impl PyClassBaseType for PyOverflowError
impl PyClassBaseType for PyOverflowError
source§impl PyClassBaseType for PyPermissionError
impl PyClassBaseType for PyPermissionError
source§impl PyClassBaseType for PyRecursionError
impl PyClassBaseType for PyRecursionError
source§impl PyClassBaseType for PyReferenceError
impl PyClassBaseType for PyReferenceError
source§impl PyClassBaseType for PyResourceWarning
impl PyClassBaseType for PyResourceWarning
source§impl PyClassBaseType for PyRuntimeError
impl PyClassBaseType for PyRuntimeError
source§impl PyClassBaseType for PyRuntimeWarning
impl PyClassBaseType for PyRuntimeWarning
source§impl PyClassBaseType for PyStopIteration
impl PyClassBaseType for PyStopIteration
source§impl PyClassBaseType for PySyntaxError
impl PyClassBaseType for PySyntaxError
source§impl PyClassBaseType for PySyntaxWarning
impl PyClassBaseType for PySyntaxWarning
source§impl PyClassBaseType for PySystemError
impl PyClassBaseType for PySystemError
source§impl PyClassBaseType for PySystemExit
impl PyClassBaseType for PySystemExit
source§impl PyClassBaseType for PyTimeoutError
impl PyClassBaseType for PyTimeoutError
source§impl PyClassBaseType for PyTypeError
impl PyClassBaseType for PyTypeError
source§impl PyClassBaseType for PyUnicodeError
impl PyClassBaseType for PyUnicodeError
source§impl PyClassBaseType for PyUnicodeWarning
impl PyClassBaseType for PyUnicodeWarning
source§impl PyClassBaseType for PyUserWarning
impl PyClassBaseType for PyUserWarning
source§impl PyClassBaseType for PyValueError
impl PyClassBaseType for PyValueError
source§impl PyClassBaseType for PyWarning
impl PyClassBaseType for PyWarning
source§impl PyClassBaseType for PyAny
impl PyClassBaseType for PyAny
type LayoutAsBase = PyClassObjectBase<PyObject>
type BaseNativeType = PyAny
type Initializer = PyNativeTypeInitializer<PyAny>
type PyClassMutability = ImmutableClass
source§impl PyClassBaseType for PyBool
impl PyClassBaseType for PyBool
type LayoutAsBase = PyClassObjectBase<PyObject>
type BaseNativeType = PyBool
type Initializer = PyNativeTypeInitializer<PyBool>
type PyClassMutability = ImmutableClass
source§impl PyClassBaseType for PyComplex
impl PyClassBaseType for PyComplex
source§impl PyClassBaseType for PyDate
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyDate
Available on non-
Py_LIMITED_API
only.type LayoutAsBase = PyClassObjectBase<PyDateTime_Date>
type BaseNativeType = PyDate
type Initializer = PyNativeTypeInitializer<PyDate>
type PyClassMutability = ImmutableClass
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.type LayoutAsBase = PyClassObjectBase<PyDateTime_Delta>
type BaseNativeType = PyDelta
type Initializer = PyNativeTypeInitializer<PyDelta>
type PyClassMutability = ImmutableClass
source§impl PyClassBaseType for PyTime
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyTime
Available on non-
Py_LIMITED_API
only.type LayoutAsBase = PyClassObjectBase<PyDateTime_Time>
type BaseNativeType = PyTime
type Initializer = PyNativeTypeInitializer<PyTime>
type PyClassMutability = ImmutableClass
source§impl PyClassBaseType for PyTzInfo
Available on non-Py_LIMITED_API
only.
impl PyClassBaseType for PyTzInfo
Available on non-
Py_LIMITED_API
only.type LayoutAsBase = PyClassObjectBase<PyObject>
type BaseNativeType = PyTzInfo
type Initializer = PyNativeTypeInitializer<PyTzInfo>
type PyClassMutability = ImmutableClass
source§impl PyClassBaseType for PyDict
impl PyClassBaseType for PyDict
type LayoutAsBase = PyClassObjectBase<PyDictObject>
type BaseNativeType = PyDict
type Initializer = PyNativeTypeInitializer<PyDict>
type PyClassMutability = ImmutableClass
source§impl PyClassBaseType for PyFloat
impl PyClassBaseType for PyFloat
type LayoutAsBase = PyClassObjectBase<PyFloatObject>
type BaseNativeType = PyFloat
type Initializer = PyNativeTypeInitializer<PyFloat>
type PyClassMutability = ImmutableClass
source§impl PyClassBaseType for PyFrozenSet
impl PyClassBaseType for PyFrozenSet
source§impl PyClassBaseType for PySet
impl PyClassBaseType for PySet
type LayoutAsBase = PyClassObjectBase<PySetObject>
type BaseNativeType = PySet
type Initializer = PyNativeTypeInitializer<PySet>
type PyClassMutability = ImmutableClass
source§impl PyClassBaseType for PySlice
impl PyClassBaseType for PySlice
type LayoutAsBase = PyClassObjectBase<PySliceObject>
type BaseNativeType = PySlice
type Initializer = PyNativeTypeInitializer<PySlice>
type PyClassMutability = ImmutableClass
source§impl<T: PyClass> PyClassBaseType for T
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.