pub struct PyAny(/* private fields */);
Expand description
Represents any Python object.
Values of this type are accessed via PyO3’s smart pointers, e.g. as
Py<PyAny>
or Bound<'py, PyAny>
.
For APIs available on all Python objects, see the PyAnyMethods
trait which is implemented for
Bound<'py, PyAny>
.
See the guide for an explanation of the different Python object types.
Trait Implementations§
Source§impl AsPyPointer for PyAny
impl AsPyPointer for PyAny
Source§impl AsRef<PyAny> for CancelledError
impl AsRef<PyAny> for CancelledError
Source§impl AsRef<PyAny> for IncompleteReadError
impl AsRef<PyAny> for IncompleteReadError
Source§impl AsRef<PyAny> for InvalidStateError
impl AsRef<PyAny> for InvalidStateError
Source§impl AsRef<PyAny> for LimitOverrunError
impl AsRef<PyAny> for LimitOverrunError
Source§impl AsRef<PyAny> for PanicException
impl AsRef<PyAny> for PanicException
Source§impl AsRef<PyAny> for PyArithmeticError
impl AsRef<PyAny> for PyArithmeticError
Source§impl AsRef<PyAny> for PyAssertionError
impl AsRef<PyAny> for PyAssertionError
Source§impl AsRef<PyAny> for PyAttributeError
impl AsRef<PyAny> for PyAttributeError
Source§impl AsRef<PyAny> for PyBaseException
impl AsRef<PyAny> for PyBaseException
Source§impl AsRef<PyAny> for PyBlockingIOError
impl AsRef<PyAny> for PyBlockingIOError
Source§impl AsRef<PyAny> for PyBrokenPipeError
impl AsRef<PyAny> for PyBrokenPipeError
Source§impl AsRef<PyAny> for PyBufferError
impl AsRef<PyAny> for PyBufferError
Source§impl AsRef<PyAny> for PyByteArray
impl AsRef<PyAny> for PyByteArray
Source§impl AsRef<PyAny> for PyBytesWarning
impl AsRef<PyAny> for PyBytesWarning
Source§impl AsRef<PyAny> for PyCFunction
impl AsRef<PyAny> for PyCFunction
Source§impl AsRef<PyAny> for PyChildProcessError
impl AsRef<PyAny> for PyChildProcessError
Source§impl AsRef<PyAny> for PyConnectionAbortedError
impl AsRef<PyAny> for PyConnectionAbortedError
Source§impl AsRef<PyAny> for PyConnectionError
impl AsRef<PyAny> for PyConnectionError
Source§impl AsRef<PyAny> for PyConnectionRefusedError
impl AsRef<PyAny> for PyConnectionRefusedError
Source§impl AsRef<PyAny> for PyConnectionResetError
impl AsRef<PyAny> for PyConnectionResetError
Source§impl AsRef<PyAny> for PyDateTime
impl AsRef<PyAny> for PyDateTime
Source§impl AsRef<PyAny> for PyDeprecationWarning
impl AsRef<PyAny> for PyDeprecationWarning
Source§impl AsRef<PyAny> for PyDictItems
impl AsRef<PyAny> for PyDictItems
Source§impl AsRef<PyAny> for PyDictKeys
impl AsRef<PyAny> for PyDictKeys
Source§impl AsRef<PyAny> for PyDictValues
impl AsRef<PyAny> for PyDictValues
Source§impl AsRef<PyAny> for PyEOFError
impl AsRef<PyAny> for PyEOFError
Source§impl AsRef<PyAny> for PyEllipsis
impl AsRef<PyAny> for PyEllipsis
Source§impl AsRef<PyAny> for PyEncodingWarning
impl AsRef<PyAny> for PyEncodingWarning
Source§impl AsRef<PyAny> for PyEnvironmentError
impl AsRef<PyAny> for PyEnvironmentError
Source§impl AsRef<PyAny> for PyException
impl AsRef<PyAny> for PyException
Source§impl AsRef<PyAny> for PyFileExistsError
impl AsRef<PyAny> for PyFileExistsError
Source§impl AsRef<PyAny> for PyFileNotFoundError
impl AsRef<PyAny> for PyFileNotFoundError
Source§impl AsRef<PyAny> for PyFloatingPointError
impl AsRef<PyAny> for PyFloatingPointError
Source§impl AsRef<PyAny> for PyFrozenSet
impl AsRef<PyAny> for PyFrozenSet
Source§impl AsRef<PyAny> for PyFunction
impl AsRef<PyAny> for PyFunction
Source§impl AsRef<PyAny> for PyFutureWarning
impl AsRef<PyAny> for PyFutureWarning
Source§impl AsRef<PyAny> for PyGeneratorExit
impl AsRef<PyAny> for PyGeneratorExit
Source§impl AsRef<PyAny> for PyImportError
impl AsRef<PyAny> for PyImportError
Source§impl AsRef<PyAny> for PyImportWarning
impl AsRef<PyAny> for PyImportWarning
Source§impl AsRef<PyAny> for PyIndexError
impl AsRef<PyAny> for PyIndexError
Source§impl AsRef<PyAny> for PyInterruptedError
impl AsRef<PyAny> for PyInterruptedError
Source§impl AsRef<PyAny> for PyIsADirectoryError
impl AsRef<PyAny> for PyIsADirectoryError
Source§impl AsRef<PyAny> for PyIterator
impl AsRef<PyAny> for PyIterator
Source§impl AsRef<PyAny> for PyKeyError
impl AsRef<PyAny> for PyKeyError
Source§impl AsRef<PyAny> for PyKeyboardInterrupt
impl AsRef<PyAny> for PyKeyboardInterrupt
Source§impl AsRef<PyAny> for PyLookupError
impl AsRef<PyAny> for PyLookupError
Source§impl AsRef<PyAny> for PyMemoryError
impl AsRef<PyAny> for PyMemoryError
Source§impl AsRef<PyAny> for PyMemoryView
impl AsRef<PyAny> for PyMemoryView
Source§impl AsRef<PyAny> for PyModuleNotFoundError
impl AsRef<PyAny> for PyModuleNotFoundError
Source§impl AsRef<PyAny> for PyNameError
impl AsRef<PyAny> for PyNameError
Source§impl AsRef<PyAny> for PyNotADirectoryError
impl AsRef<PyAny> for PyNotADirectoryError
Source§impl AsRef<PyAny> for PyNotImplemented
impl AsRef<PyAny> for PyNotImplemented
Source§impl AsRef<PyAny> for PyNotImplementedError
impl AsRef<PyAny> for PyNotImplementedError
Source§impl AsRef<PyAny> for PyOverflowError
impl AsRef<PyAny> for PyOverflowError
Source§impl AsRef<PyAny> for PyPendingDeprecationWarning
impl AsRef<PyAny> for PyPendingDeprecationWarning
Source§impl AsRef<PyAny> for PyPermissionError
impl AsRef<PyAny> for PyPermissionError
Source§impl AsRef<PyAny> for PyProcessLookupError
impl AsRef<PyAny> for PyProcessLookupError
Source§impl AsRef<PyAny> for PyRecursionError
impl AsRef<PyAny> for PyRecursionError
Source§impl AsRef<PyAny> for PyReferenceError
impl AsRef<PyAny> for PyReferenceError
Source§impl AsRef<PyAny> for PyResourceWarning
impl AsRef<PyAny> for PyResourceWarning
Source§impl AsRef<PyAny> for PyRuntimeError
impl AsRef<PyAny> for PyRuntimeError
Source§impl AsRef<PyAny> for PyRuntimeWarning
impl AsRef<PyAny> for PyRuntimeWarning
Source§impl AsRef<PyAny> for PySequence
impl AsRef<PyAny> for PySequence
Source§impl AsRef<PyAny> for PyStopAsyncIteration
impl AsRef<PyAny> for PyStopAsyncIteration
Source§impl AsRef<PyAny> for PyStopIteration
impl AsRef<PyAny> for PyStopIteration
Source§impl AsRef<PyAny> for PySyntaxError
impl AsRef<PyAny> for PySyntaxError
Source§impl AsRef<PyAny> for PySyntaxWarning
impl AsRef<PyAny> for PySyntaxWarning
Source§impl AsRef<PyAny> for PySystemError
impl AsRef<PyAny> for PySystemError
Source§impl AsRef<PyAny> for PySystemExit
impl AsRef<PyAny> for PySystemExit
Source§impl AsRef<PyAny> for PyTimeoutError
impl AsRef<PyAny> for PyTimeoutError
Source§impl AsRef<PyAny> for PyTraceback
impl AsRef<PyAny> for PyTraceback
Source§impl AsRef<PyAny> for PyTypeError
impl AsRef<PyAny> for PyTypeError
Source§impl AsRef<PyAny> for PyUnboundLocalError
impl AsRef<PyAny> for PyUnboundLocalError
Source§impl AsRef<PyAny> for PyUnicodeDecodeError
impl AsRef<PyAny> for PyUnicodeDecodeError
Source§impl AsRef<PyAny> for PyUnicodeEncodeError
impl AsRef<PyAny> for PyUnicodeEncodeError
Source§impl AsRef<PyAny> for PyUnicodeError
impl AsRef<PyAny> for PyUnicodeError
Source§impl AsRef<PyAny> for PyUnicodeTranslateError
impl AsRef<PyAny> for PyUnicodeTranslateError
Source§impl AsRef<PyAny> for PyUnicodeWarning
impl AsRef<PyAny> for PyUnicodeWarning
Source§impl AsRef<PyAny> for PyUserWarning
impl AsRef<PyAny> for PyUserWarning
Source§impl AsRef<PyAny> for PyValueError
impl AsRef<PyAny> for PyValueError
Source§impl AsRef<PyAny> for PyWeakrefProxy
impl AsRef<PyAny> for PyWeakrefProxy
Source§impl AsRef<PyAny> for PyWeakrefReference
impl AsRef<PyAny> for PyWeakrefReference
Source§impl AsRef<PyAny> for PyZeroDivisionError
impl AsRef<PyAny> for PyZeroDivisionError
Source§impl AsRef<PyAny> for QueueEmpty
impl AsRef<PyAny> for QueueEmpty
Source§impl AsRef<PyAny> for TimeoutError
impl AsRef<PyAny> for TimeoutError
Source§impl PyTypeInfo for PyAny
impl PyTypeInfo for PyAny
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Source§fn is_type_of_bound(obj: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(obj: &Bound<'_, PyAny>) -> bool
Checks if
object
is an instance of this type or a subclass of this type.impl PyLayout<PyAny> for PyObject
impl PySizedLayout<PyAny> for PyObject
Auto Trait Implementations§
impl !Freeze for PyAny
impl !RefUnwindSafe for PyAny
impl !Send for PyAny
impl !Sync for PyAny
impl Unpin for PyAny
impl UnwindSafe for PyAny
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more