Skip to main content

extract_argument_with_default

Function extract_argument_with_default 

Source
pub fn extract_argument_with_default<'a, 'holder, 'py, T, const IMPLEMENTS_FROMPYOBJECT: bool>(
    obj: Option<Borrowed<'a, 'py, PyAny>>,
    holder: &'holder mut T::Holder,
    arg_name: &str,
    default: fn() -> T,
) -> PyResult<T>
where T: PyFunctionArgument<'a, 'holder, 'py, IMPLEMENTS_FROMPYOBJECT>,
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