pyo3::err

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

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