[][src]Trait pyo3::PyErrArguments

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

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

Required methods

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

Arguments for exception

Loading content...

Implementations on Foreign Types

impl PyErrArguments for Error[src]

impl<W: Send + Sync + Debug> PyErrArguments for IntoInnerError<W>[src]

impl PyErrArguments for TryFromSliceError[src]

impl PyErrArguments for ParseIntError[src]

impl PyErrArguments for ParseFloatError[src]

impl PyErrArguments for TryFromIntError[src]

impl PyErrArguments for ParseBoolError[src]

impl PyErrArguments for IntoStringError[src]

impl PyErrArguments for NulError[src]

impl PyErrArguments for Utf8Error[src]

impl PyErrArguments for FromUtf8Error[src]

impl PyErrArguments for FromUtf16Error[src]

impl PyErrArguments for DecodeUtf16Error[src]

impl PyErrArguments for AddrParseError[src]

Loading content...

Implementors

impl<T> PyErrArguments for T where
    T: IntoPy<PyObject> + Send + Sync
[src]

Loading content...