Selfie
|
Public Member Functions | |
SerializedForm | serialize (self, T value) |
T | parse (self, SerializedForm serialized) |
"Roundtrip[T, T]" | identity (cls) |
"Roundtrip[T, str]" | json (cls) |
Definition at line 8 of file Roundtrip.py.
Return an identity Roundtrip that does no transformation.
Definition at line 18 of file Roundtrip.py.
"Roundtrip[T, str]" selfie_lib.Roundtrip.Roundtrip.json | ( | cls | ) |
Return a Roundtrip that serializes to/from JSON strings.
Definition at line 31 of file Roundtrip.py.
T selfie_lib.Roundtrip.Roundtrip.parse | ( | self, | |
SerializedForm | serialized | ||
) |
Parse the SerializedForm back to type T.
Definition at line 13 of file Roundtrip.py.
SerializedForm selfie_lib.Roundtrip.Roundtrip.serialize | ( | self, | |
T | value | ||
) |
Serialize a value of type T to its SerializedForm.
Definition at line 9 of file Roundtrip.py.