[][src]Trait pyo3::type_object::PyTypeObject

pub unsafe trait PyTypeObject {
    fn type_object(py: Python<'_>) -> &PyType;
}

Python object types that have a corresponding type object.

This trait is marked unsafe because not fulfilling the contract for type_object leads to UB.

See [PyTypeInfo::type_object]

Required methods

fn type_object(py: Python<'_>) -> &PyType

Returns the safe abstraction over the type object.

Loading content...

Implementors

impl PyTypeObject for CancelledError[src]

impl PyTypeObject for IncompleteReadError[src]

impl PyTypeObject for InvalidStateError[src]

impl PyTypeObject for LimitOverrunError[src]

impl PyTypeObject for QueueEmpty[src]

impl PyTypeObject for QueueFull[src]

impl PyTypeObject for pyo3::exceptions::asyncio::TimeoutError[src]

impl PyTypeObject for gaierror[src]

impl PyTypeObject for herror[src]

impl PyTypeObject for timeout[src]

impl PyTypeObject for ArithmeticError[src]

impl PyTypeObject for AssertionError[src]

impl PyTypeObject for AttributeError[src]

impl PyTypeObject for BaseException[src]

impl PyTypeObject for BlockingIOError[src]

impl PyTypeObject for BrokenPipeError[src]

impl PyTypeObject for BufferError[src]

impl PyTypeObject for ChildProcessError[src]

impl PyTypeObject for ConnectionAbortedError[src]

impl PyTypeObject for ConnectionError[src]

impl PyTypeObject for ConnectionRefusedError[src]

impl PyTypeObject for ConnectionResetError[src]

impl PyTypeObject for EOFError[src]

impl PyTypeObject for EnvironmentError[src]

impl PyTypeObject for Exception[src]

impl PyTypeObject for FileExistsError[src]

impl PyTypeObject for FileNotFoundError[src]

impl PyTypeObject for FloatingPointError[src]

impl PyTypeObject for GeneratorExit[src]

impl PyTypeObject for IOError[src]

impl PyTypeObject for ImportError[src]

impl PyTypeObject for IndexError[src]

impl PyTypeObject for InterruptedError[src]

impl PyTypeObject for IsADirectoryError[src]

impl PyTypeObject for KeyError[src]

impl PyTypeObject for KeyboardInterrupt[src]

impl PyTypeObject for LookupError[src]

impl PyTypeObject for MemoryError[src]

impl PyTypeObject for ModuleNotFoundError[src]

impl PyTypeObject for NameError[src]

impl PyTypeObject for NotADirectoryError[src]

impl PyTypeObject for NotImplementedError[src]

impl PyTypeObject for OSError[src]

impl PyTypeObject for OverflowError[src]

impl PyTypeObject for PermissionError[src]

impl PyTypeObject for ProcessLookupError[src]

impl PyTypeObject for RecursionError[src]

impl PyTypeObject for ReferenceError[src]

impl PyTypeObject for RuntimeError[src]

impl PyTypeObject for StopAsyncIteration[src]

impl PyTypeObject for StopIteration[src]

impl PyTypeObject for SyntaxError[src]

impl PyTypeObject for SystemError[src]

impl PyTypeObject for SystemExit[src]

impl PyTypeObject for pyo3::exceptions::TimeoutError[src]

impl PyTypeObject for TypeError[src]

impl PyTypeObject for UnboundLocalError[src]

impl PyTypeObject for UnicodeDecodeError[src]

impl PyTypeObject for UnicodeEncodeError[src]

impl PyTypeObject for UnicodeError[src]

impl PyTypeObject for UnicodeTranslateError[src]

impl PyTypeObject for ValueError[src]

impl PyTypeObject for ZeroDivisionError[src]

impl PyTypeObject for PanicException[src]

impl PyTypeObject for PyBorrowError[src]

impl PyTypeObject for PyBorrowMutError[src]

impl<T> PyTypeObject for T where
    T: PyTypeInfo
[src]

Loading content...