Skip to main content

error_on_minusone_with_result

Function error_on_minusone_with_result 

Source
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.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here