-
Notifications
You must be signed in to change notification settings - Fork 5
Serialization
Lukas Kalbertodt edited this page Jun 25, 2018
·
1 revision
-
Everything statically known: a struct
- Can be serialized, knows its types, knows its labels
-
Type without clear semantic label: (f32, f32, f32)
- Can be serialized, knows its type, different labels can be applied
-
Dynamic structure
- Can be serialized, types and labels only known at runtime
Case (2.) can be achieved: the PropListSerialize
trait doesn't require LabeledPropList
. Case (3.) is not possible right now, since PropListSerialize
has a type_of
method. This would have to be moved to a different trait.