Trait MapPyErr

Source
pub trait MapPyErr<T> {
    // Required method
    fn map_pyerr(self) -> Result<T, PyErr>;
}

Required Methods§

Source

fn map_pyerr(self) -> Result<T, PyErr>

Implementations on Foreign Types§

Source§

impl<T, E> MapPyErr<T> for Result<T, E>
where E: ToString,

Source§

fn map_pyerr(self) -> Result<T, PyErr>

Implementors§