Attempt to convert the given data into a Python object
(py: Python<'py>, value: &T)
| 166 | |
| 167 | /// Attempt to convert the given data into a Python object |
| 168 | pub fn pythonize<'py, T>(py: Python<'py>, value: &T) -> Result<Bound<'py, PyAny>> |
| 169 | where |
| 170 | T: ?Sized + Serialize, |
| 171 | { |
| 172 | value.serialize(Pythonizer::new(py)) |
| 173 | } |
| 174 | |
| 175 | /// Attempt to convert the given data into a Python object. |
| 176 | /// Also uses custom mapping python class for serialization. |