Function pyo3::err::error_on_minusone
source · pub(crate) fn error_on_minusone<T: SignedInteger>(
py: Python<'_>,
result: T
) -> PyResult<()>
Expand description
Returns Ok if the error code is not -1.
pub(crate) fn error_on_minusone<T: SignedInteger>(
py: Python<'_>,
result: T
) -> PyResult<()>
Returns Ok if the error code is not -1.