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.

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