pyo3::impl_::extract_argument

Function unwrap_required_argument

Source
#[doc(hidden)] pub unsafe fn unwrap_required_argument<'a, 'py>(
    argument: Option<&'a Bound<'py, PyAny>>,
) -> &'a Bound<'py, PyAny>
Expand description

Unwraps the Option<&PyAny> produced by the FunctionDescription extract_arguments_ methods. They check if required methods are all provided.

§Safety

argument must not be None

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