MCPcopy Index your code
hub / github.com/davidhewitt/pythonize / PythonizeTypes

Interface PythonizeTypes

src/ser.rs:69–76  ·  view source on GitHub ↗

Custom types for serialization

Source from the content-addressed store, hash-verified

67
68/// Custom types for serialization
69pub 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
78impl PythonizeMappingType for PyDict {
79 type Builder<'py> = Bound<'py, Self>;

Callers

nothing calls this directly

Implementers 3

ser.rssrc/ser.rs
test_custom_types.rstests/test_custom_types.rs
test_with_serde_path_to_err.rstests/test_with_serde_path_to_err.rs

Calls

no outgoing calls

Tested by

no test coverage detected