pyo3::impl_::extract_argument

Function extract_pyclass_ref

Source
pub fn extract_pyclass_ref<'a, 'py: 'a, T: PyClass>(
    obj: &'a Bound<'py, PyAny>,
    holder: &'a mut Option<PyRef<'py, T>>,
) -> PyResult<&'a T>
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here