Function pyo3::impl_::extract_argument::from_py_with_with_default
source · #[doc(hidden)] pub fn from_py_with_with_default<'a, 'py, T>(
obj: Option<&'a Bound<'py, PyAny>>,
arg_name: &str,
extractor: impl Into<Extractor<'a, 'py, T>>,
default: fn() -> T
) -> PyResult<T>
Expand description
Alternative to extract_argument
used when the argument has a #[pyo3(from_py_with)]
annotation and also a default value.