Skip to main content

indexmap_to_pydict_pyo3

Function indexmap_to_pydict_pyo3 

Source
pub fn indexmap_to_pydict_pyo3<K, V>(
    py: Python<'_>,
    value: &IndexMap<K, V>,
) -> PyResult<Py<PyAny>>
where K: for<'py> IntoPyObject<'py> + Clone, V: for<'py> IntoPyObject<'py> + Clone,
Expand description

Convert an [IndexMap] to a Python dict using typed PyO3 keys and values.

ยงErrors

Returns an error if any key or value cannot be converted to Python.