Skip to main content

extract_receiver

Function extract_receiver 

Source
pub fn extract_receiver<'a, 'py, T, R>(
    bound_ref: &'a Bound<'py, PyAny>,
) -> PyResult<R>
where T: PyTypeCheck + 'a, R: TryFrom<&'a Bound<'py, T>>, R::Error: Into<PyErr>,
Expand description

As extract_receiver_trusted, but performs a checked cast.

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