pyo3::conversions::std::num

Function err_if_invalid_value

Source
fn err_if_invalid_value<T: PartialEq>(
    py: Python<'_>,
    invalid_value: T,
    actual_value: T,
) -> PyResult<T>
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here