pyo3::impl_::pyclass

Function ensure_no_mutable_alias

Source
unsafe fn ensure_no_mutable_alias<'py, ClassT: PyClass>(
    py: Python<'py>,
    obj: &*mut PyObject,
) -> Result<PyRef<'py, ClassT>, PyBorrowError>
Expand description

ensures obj is not mutably aliased

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