pyo3::impl_::extract_argument

Function extract_argument_with_default

Source
#[doc(hidden)] pub fn extract_argument_with_default<'a, 'py, T>(
    obj: Option<&'a Bound<'py, PyAny>>,
    holder: &'a mut T::Holder,
    arg_name: &str,
    default: fn() -> T,
) -> PyResult<T>
where T: PyFunctionArgument<'a, 'py>,
Expand description

Alternative to extract_argument used when the argument has a default value provided by an annotation.

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