Skip to main content

unwrap_required_argument

Function unwrap_required_argument 

Source
pub unsafe fn unwrap_required_argument<'a, 'py>(
    argument: Option<Borrowed<'a, 'py, PyAny>>,
) -> Borrowed<'a, '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