Custom types for serialization
| 67 | |
| 68 | /// Custom types for serialization |
| 69 | pub trait PythonizeTypes { |
| 70 | /// Python map type (should be representable as python mapping) |
| 71 | type Map: PythonizeMappingType; |
| 72 | /// Python (struct-like) named map type (should be representable as python mapping) |
| 73 | type NamedMap: PythonizeNamedMappingType; |
| 74 | /// Python sequence type (should be representable as python sequence) |
| 75 | type List: PythonizeListType; |
| 76 | } |
| 77 | |
| 78 | impl PythonizeMappingType for PyDict { |
| 79 | type Builder<'py> = Bound<'py, Self>; |
nothing calls this directly
no outgoing calls
no test coverage detected