Skip to main content

extract_cls_receiver

Function extract_cls_receiver 

Source
pub fn extract_cls_receiver<'a, 'py, T>(
    slf: &'a Bound<'py, PyAny>,
    holder: &'a mut Option<Bound<'py, PyType>>,
) -> PyResult<&'a Bound<'py, PyType>>
where T: PyTypeInfo,
Expand description

Extracts a cls receiver from a class instance, performing a checked cast.

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