pyo3::impl_::extract_argument

Function from_py_with

Source
#[doc(hidden)] pub fn from_py_with<'a, 'py, T>(
    obj: &'a Bound<'py, PyAny>,
    arg_name: &str,
    extractor: fn(_: &'a Bound<'py, PyAny>) -> PyResult<T>,
) -> PyResult<T>
Expand description

Alternative to extract_argument used when the argument has a #[pyo3(from_py_with)] annotation.

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