Trait cpython::PythonObjectWithTypeObject

source ·
pub trait PythonObjectWithTypeObject: PythonObjectWithCheckedDowncast {
    // Required method
    fn type_object(py: Python<'_>) -> PyType;
}
Expand description

Trait implemented by Python object types that have a corresponding type object.

Required Methods§

source

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

Retrieves the type object for this Python object type.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl PythonObjectWithTypeObject for AssertionError

source§

impl PythonObjectWithTypeObject for AttributeError

source§

impl PythonObjectWithTypeObject for BaseException

source§

impl PythonObjectWithTypeObject for BlockingIOError

source§

impl PythonObjectWithTypeObject for BrokenPipeError

source§

impl PythonObjectWithTypeObject for BufferError

source§

impl PythonObjectWithTypeObject for ChildProcessError

source§

impl PythonObjectWithTypeObject for ConnectionAbortedError

source§

impl PythonObjectWithTypeObject for ConnectionError

source§

impl PythonObjectWithTypeObject for ConnectionRefusedError

source§

impl PythonObjectWithTypeObject for ConnectionResetError

source§

impl PythonObjectWithTypeObject for EOFError

source§

impl PythonObjectWithTypeObject for EnvironmentError

source§

impl PythonObjectWithTypeObject for Exception

source§

impl PythonObjectWithTypeObject for FileExistsError

source§

impl PythonObjectWithTypeObject for FileNotFoundError

source§

impl PythonObjectWithTypeObject for FloatingPointError

source§

impl PythonObjectWithTypeObject for IOError

source§

impl PythonObjectWithTypeObject for ImportError

source§

impl PythonObjectWithTypeObject for IndexError

source§

impl PythonObjectWithTypeObject for InterruptedError

source§

impl PythonObjectWithTypeObject for IsADirectoryError

source§

impl PythonObjectWithTypeObject for KeyError

source§

impl PythonObjectWithTypeObject for KeyboardInterrupt

source§

impl PythonObjectWithTypeObject for LookupError

source§

impl PythonObjectWithTypeObject for MemoryError

source§

impl PythonObjectWithTypeObject for NameError

source§

impl PythonObjectWithTypeObject for NotADirectoryError

source§

impl PythonObjectWithTypeObject for NotImplementedError

source§

impl PythonObjectWithTypeObject for OSError

source§

impl PythonObjectWithTypeObject for OverflowError

source§

impl PythonObjectWithTypeObject for PermissionError

source§

impl PythonObjectWithTypeObject for ProcessLookupError

source§

impl PythonObjectWithTypeObject for ReferenceError

source§

impl PythonObjectWithTypeObject for RuntimeError

source§

impl PythonObjectWithTypeObject for SyntaxError

source§

impl PythonObjectWithTypeObject for SystemError

source§

impl PythonObjectWithTypeObject for SystemExit

source§

impl PythonObjectWithTypeObject for TimeoutError

source§

impl PythonObjectWithTypeObject for TypeError

source§

impl PythonObjectWithTypeObject for UnicodeDecodeError

source§

impl PythonObjectWithTypeObject for UnicodeEncodeError

source§

impl PythonObjectWithTypeObject for UnicodeTranslateError

source§

impl PythonObjectWithTypeObject for ValueError

source§

impl PythonObjectWithTypeObject for ZeroDivisionError

source§

impl PythonObjectWithTypeObject for PyBool

source§

impl PythonObjectWithTypeObject for PyBytes

source§

impl PythonObjectWithTypeObject for PyCapsule

source§

impl PythonObjectWithTypeObject for PyDict

source§

impl PythonObjectWithTypeObject for PyFloat

source§

impl PythonObjectWithTypeObject for PyLong

source§

impl PythonObjectWithTypeObject for PyList

source§

impl PythonObjectWithTypeObject for PyModule

source§

impl PythonObjectWithTypeObject for PyObject

source§

impl PythonObjectWithTypeObject for PySet

source§

impl PythonObjectWithTypeObject for PyTuple

source§

impl PythonObjectWithTypeObject for PyType

source§

impl PythonObjectWithTypeObject for PyString