pyo3

Trait PyErrArguments

source
pub trait PyErrArguments: Send + Sync {
    // Required method
    fn arguments(self, py: Python<'_>) -> PyObject;
}
Expand description

Helper conversion trait that allows to use custom arguments for lazy exception construction.

Required Methods§

source

fn arguments(self, py: Python<'_>) -> PyObject

Arguments for exception

Implementations on Foreign Types§

source§

impl PyErrArguments for IntoStringError

source§

fn arguments(self, py: Python<'_>) -> PyObject

source§

impl PyErrArguments for NulError

source§

fn arguments(self, py: Python<'_>) -> PyObject

source§

impl PyErrArguments for FromUtf8Error

source§

fn arguments(self, py: Python<'_>) -> PyObject

source§

impl PyErrArguments for FromUtf16Error

source§

fn arguments(self, py: Python<'_>) -> PyObject

source§

impl PyErrArguments for TryFromSliceError

source§

fn arguments(self, py: Python<'_>) -> PyObject

source§

impl PyErrArguments for DecodeUtf16Error

source§

fn arguments(self, py: Python<'_>) -> PyObject

source§

impl PyErrArguments for AddrParseError

source§

fn arguments(self, py: Python<'_>) -> PyObject

source§

impl PyErrArguments for ParseFloatError

source§

fn arguments(self, py: Python<'_>) -> PyObject

source§

impl PyErrArguments for ParseIntError

source§

fn arguments(self, py: Python<'_>) -> PyObject

source§

impl PyErrArguments for TryFromIntError

source§

fn arguments(self, py: Python<'_>) -> PyObject

source§

impl PyErrArguments for ParseBoolError

source§

fn arguments(self, py: Python<'_>) -> PyObject

source§

impl PyErrArguments for Utf8Error

source§

fn arguments(self, py: Python<'_>) -> PyObject

source§

impl PyErrArguments for Error

source§

fn arguments(self, py: Python<'_>) -> PyObject

source§

impl<W: Send + Sync> PyErrArguments for IntoInnerError<W>

source§

fn arguments(self, py: Python<'_>) -> PyObject

Implementors§

source§

impl<T> PyErrArguments for T
where T: IntoPy<PyObject> + Send + Sync,