Skip to main content

extract_list

Function extract_list 

Source
pub fn extract_list<T>(
    ob: &Bound<'_, PyAny>,
    attr_name: &str,
    context: &str,
) -> PyResult<Vec<T>>
where T: for<'any, 'py> FromPyObject<'any, 'py>,
Expand description

Generic function for extracting lists of items with error handling.