Skip to main content

data_to_pyobject

Function data_to_pyobject 

Source
pub fn data_to_pyobject(py: Python<'_>, data: Data) -> PyResult<Py<PyAny>>
Expand description

Converts a Data value into its native PyO3 object.

ยงErrors

Returns an error for data variants without a Python representation.