Skip to main content

extract_argument

Function extract_argument 

Source
pub fn extract_argument<'a, 'holder, 'py, T, const IMPLEMENTS_FROMPYOBJECT: bool>(
    obj: Borrowed<'a, 'py, PyAny>,
    holder: &'holder mut T::Holder,
    arg_name: &str,
) -> PyResult<T>
where T: PyFunctionArgument<'a, 'holder, 'py, IMPLEMENTS_FROMPYOBJECT>,
Expand description

The standard implementation of how PyO3 extracts a #[pyfunction] or #[pymethod] function argument.

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