pyo3::ffi

Struct PyBaseExceptionObject

Source
#[repr(C)]
pub struct PyBaseExceptionObject { pub ob_base: PyObject, pub dict: *mut PyObject, pub args: *mut PyObject, pub traceback: *mut PyObject, pub context: *mut PyObject, pub cause: *mut PyObject, pub suppress_context: char, }

Fields§

§ob_base: PyObject§dict: *mut PyObject§args: *mut PyObject§traceback: *mut PyObject§context: *mut PyObject§cause: *mut PyObject§suppress_context: char

Trait Implementations§

Source§

impl Debug for PyBaseExceptionObject

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl PyLayout<PyArithmeticError> for PyBaseExceptionObject

Source§

impl PyLayout<PyAssertionError> for PyBaseExceptionObject

Source§

impl PyLayout<PyAttributeError> for PyBaseExceptionObject

Source§

impl PyLayout<PyBaseException> for PyBaseExceptionObject

Source§

impl PyLayout<PyBlockingIOError> for PyBaseExceptionObject

Source§

impl PyLayout<PyBrokenPipeError> for PyBaseExceptionObject

Source§

impl PyLayout<PyBufferError> for PyBaseExceptionObject

Source§

impl PyLayout<PyBytesWarning> for PyBaseExceptionObject

Source§

impl PyLayout<PyChildProcessError> for PyBaseExceptionObject

Source§

impl PyLayout<PyConnectionAbortedError> for PyBaseExceptionObject

Source§

impl PyLayout<PyConnectionError> for PyBaseExceptionObject

Source§

impl PyLayout<PyConnectionRefusedError> for PyBaseExceptionObject

Source§

impl PyLayout<PyConnectionResetError> for PyBaseExceptionObject

Source§

impl PyLayout<PyDeprecationWarning> for PyBaseExceptionObject

Source§

impl PyLayout<PyEOFError> for PyBaseExceptionObject

Source§

impl PyLayout<PyEncodingWarning> for PyBaseExceptionObject

Source§

impl PyLayout<PyEnvironmentError> for PyBaseExceptionObject

Source§

impl PyLayout<PyException> for PyBaseExceptionObject

Source§

impl PyLayout<PyFileExistsError> for PyBaseExceptionObject

Source§

impl PyLayout<PyFileNotFoundError> for PyBaseExceptionObject

Source§

impl PyLayout<PyFloatingPointError> for PyBaseExceptionObject

Source§

impl PyLayout<PyFutureWarning> for PyBaseExceptionObject

Source§

impl PyLayout<PyGeneratorExit> for PyBaseExceptionObject

Source§

impl PyLayout<PyIOError> for PyBaseExceptionObject

Source§

impl PyLayout<PyImportError> for PyBaseExceptionObject

Source§

impl PyLayout<PyImportWarning> for PyBaseExceptionObject

Source§

impl PyLayout<PyIndexError> for PyBaseExceptionObject

Source§

impl PyLayout<PyInterruptedError> for PyBaseExceptionObject

Source§

impl PyLayout<PyIsADirectoryError> for PyBaseExceptionObject

Source§

impl PyLayout<PyKeyError> for PyBaseExceptionObject

Source§

impl PyLayout<PyKeyboardInterrupt> for PyBaseExceptionObject

Source§

impl PyLayout<PyLookupError> for PyBaseExceptionObject

Source§

impl PyLayout<PyMemoryError> for PyBaseExceptionObject

Source§

impl PyLayout<PyModuleNotFoundError> for PyBaseExceptionObject

Source§

impl PyLayout<PyNameError> for PyBaseExceptionObject

Source§

impl PyLayout<PyNotADirectoryError> for PyBaseExceptionObject

Source§

impl PyLayout<PyNotImplementedError> for PyBaseExceptionObject

Source§

impl PyLayout<PyOverflowError> for PyBaseExceptionObject

Source§

impl PyLayout<PyPendingDeprecationWarning> for PyBaseExceptionObject

Source§

impl PyLayout<PyPermissionError> for PyBaseExceptionObject

Source§

impl PyLayout<PyProcessLookupError> for PyBaseExceptionObject

Source§

impl PyLayout<PyRecursionError> for PyBaseExceptionObject

Source§

impl PyLayout<PyReferenceError> for PyBaseExceptionObject

Source§

impl PyLayout<PyResourceWarning> for PyBaseExceptionObject

Source§

impl PyLayout<PyRuntimeError> for PyBaseExceptionObject

Source§

impl PyLayout<PyRuntimeWarning> for PyBaseExceptionObject

Source§

impl PyLayout<PyStopAsyncIteration> for PyBaseExceptionObject

Source§

impl PyLayout<PySyntaxWarning> for PyBaseExceptionObject

Source§

impl PyLayout<PySystemError> for PyBaseExceptionObject

Source§

impl PyLayout<PyTimeoutError> for PyBaseExceptionObject

Source§

impl PyLayout<PyTypeError> for PyBaseExceptionObject

Source§

impl PyLayout<PyUnboundLocalError> for PyBaseExceptionObject

Source§

impl PyLayout<PyUnicodeDecodeError> for PyBaseExceptionObject

Source§

impl PyLayout<PyUnicodeEncodeError> for PyBaseExceptionObject

Source§

impl PyLayout<PyUnicodeTranslateError> for PyBaseExceptionObject

Source§

impl PyLayout<PyUnicodeWarning> for PyBaseExceptionObject

Source§

impl PyLayout<PyUserWarning> for PyBaseExceptionObject

Source§

impl PyLayout<PyValueError> for PyBaseExceptionObject

Source§

impl PyLayout<PyWarning> for PyBaseExceptionObject

Source§

impl PyLayout<PyZeroDivisionError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyArithmeticError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyAssertionError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyAttributeError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyBaseException> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyBlockingIOError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyBrokenPipeError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyBufferError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyBytesWarning> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyChildProcessError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyConnectionAbortedError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyConnectionError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyConnectionRefusedError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyConnectionResetError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyDeprecationWarning> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyEOFError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyEncodingWarning> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyEnvironmentError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyException> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyFileExistsError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyFileNotFoundError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyFloatingPointError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyFutureWarning> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyGeneratorExit> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyIOError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyImportError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyImportWarning> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyIndexError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyInterruptedError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyIsADirectoryError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyKeyError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyKeyboardInterrupt> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyLookupError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyMemoryError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyModuleNotFoundError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyNameError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyNotADirectoryError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyNotImplementedError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyOverflowError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyPendingDeprecationWarning> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyPermissionError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyProcessLookupError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyRecursionError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyReferenceError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyResourceWarning> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyRuntimeError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyRuntimeWarning> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyStopAsyncIteration> for PyBaseExceptionObject

Source§

impl PySizedLayout<PySyntaxWarning> for PyBaseExceptionObject

Source§

impl PySizedLayout<PySystemError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyTimeoutError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyTypeError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyUnboundLocalError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyUnicodeDecodeError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyUnicodeEncodeError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyUnicodeTranslateError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyUnicodeWarning> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyUserWarning> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyValueError> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyWarning> for PyBaseExceptionObject

Source§

impl PySizedLayout<PyZeroDivisionError> for PyBaseExceptionObject

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.