pub trait OkWrap<T> {
type Error;
// Required method
fn wrap(self) -> Result<T, Self::Error>;
}
Expand description
Used to wrap the result of #[pyfunction]
and #[pymethods]
.
pub trait OkWrap<T> {
type Error;
// Required method
fn wrap(self) -> Result<T, Self::Error>;
}
Used to wrap the result of #[pyfunction]
and #[pymethods]
.