Trait cpython::PythonObjectWithTypeObject
[−]
[src]
pub trait PythonObjectWithTypeObject: PythonObjectWithCheckedDowncast { fn type_object(_: Python) -> PyType; }
Trait implemented by Python object types that have a corresponding type object.
Required Methods
fn type_object(_: Python) -> PyType
Retrieves the type object for this Python object type.
Implementors
impl PythonObjectWithTypeObject for PyObject
impl PythonObjectWithTypeObject for PyType
impl PythonObjectWithTypeObject for PyModule
impl PythonObjectWithTypeObject for PyString
impl PythonObjectWithTypeObject for PyBytes
impl PythonObjectWithTypeObject for PyDict
impl PythonObjectWithTypeObject for PyBool
impl PythonObjectWithTypeObject for PyTuple
impl PythonObjectWithTypeObject for PyList
impl PythonObjectWithTypeObject for PyLong
impl PythonObjectWithTypeObject for PyFloat
impl PythonObjectWithTypeObject for BaseException
impl PythonObjectWithTypeObject for Exception
impl PythonObjectWithTypeObject for LookupError
impl PythonObjectWithTypeObject for AssertionError
impl PythonObjectWithTypeObject for AttributeError
impl PythonObjectWithTypeObject for EOFError
impl PythonObjectWithTypeObject for EnvironmentError
impl PythonObjectWithTypeObject for FloatingPointError
impl PythonObjectWithTypeObject for IOError
impl PythonObjectWithTypeObject for ImportError
impl PythonObjectWithTypeObject for IndexError
impl PythonObjectWithTypeObject for KeyError
impl PythonObjectWithTypeObject for KeyboardInterrupt
impl PythonObjectWithTypeObject for MemoryError
impl PythonObjectWithTypeObject for NameError
impl PythonObjectWithTypeObject for NotImplementedError
impl PythonObjectWithTypeObject for OSError
impl PythonObjectWithTypeObject for OverflowError
impl PythonObjectWithTypeObject for ReferenceError
impl PythonObjectWithTypeObject for RuntimeError
impl PythonObjectWithTypeObject for SyntaxError
impl PythonObjectWithTypeObject for SystemError
impl PythonObjectWithTypeObject for SystemExit
impl PythonObjectWithTypeObject for TypeError
impl PythonObjectWithTypeObject for ValueError
impl PythonObjectWithTypeObject for ZeroDivisionError
impl PythonObjectWithTypeObject for BufferError
impl PythonObjectWithTypeObject for UnicodeDecodeError
impl PythonObjectWithTypeObject for UnicodeEncodeError
impl PythonObjectWithTypeObject for UnicodeTranslateError