Skip to main content

extract_pyclass_with_clone

Function extract_pyclass_with_clone 

Source
pub fn extract_pyclass_with_clone<'a, 'py, T: PyClass + Clone>(
    obj: Borrowed<'a, 'py, PyAny>,
) -> Result<T, PyClassGuardError<'a, 'py>>
Expand description

Extracts a T: PyClass + Clone from a Python object by cloning it out of the PyClassGuard.

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