Attempt to convert the given data into a Python object. Also uses custom mapping python class for serialization.
(py: Python<'py>, value: &T)
| 175 | /// Attempt to convert the given data into a Python object. |
| 176 | /// Also uses custom mapping python class for serialization. |
| 177 | pub fn pythonize_custom<'py, P, T>(py: Python<'py>, value: &T) -> Result<Bound<'py, PyAny>> |
| 178 | where |
| 179 | T: ?Sized + Serialize, |
| 180 | P: PythonizeTypes, |
| 181 | { |
| 182 | value.serialize(Pythonizer::custom::<P>(py)) |
| 183 | } |
| 184 | |
| 185 | /// A structure that serializes Rust values into Python objects |
| 186 | #[derive(Clone, Copy)] |