pub(crate) fn error_on_minusone_with_result<T: SignedInteger>(
py: Python<'_>,
result: T,
) -> PyResult<T>Expand description
Returns Ok wrapping the result if the error code is not -1.
pub(crate) fn error_on_minusone_with_result<T: SignedInteger>(
py: Python<'_>,
result: T,
) -> PyResult<T>Returns Ok wrapping the result if the error code is not -1.