Skip to main content

cast_optional_function_argument

Function cast_optional_function_argument 

Source
pub unsafe fn cast_optional_function_argument<'py>(
    py: Python<'py>,
    raw_arg: *mut PyObject,
) -> Option<Borrowed<'py, 'py, PyAny>>
Expand description

As above, but for optional arguments which may be NULL.

§Safety

  • raw_arg must be a valid *mut ffi::PyObject for the lifetime 'py, or NULL.
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here