Skip to main content

error_on_negative

Function error_on_negative 

Source
pub(crate) fn error_on_negative<T: From<i8> + Ord>(
    py: Python<'_>,
    result: T,
) -> PyResult<()>
Expand description

Returns Ok if the error code is non-negative.

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