Skip to content

Serialization

Lukas Kalbertodt edited this page Jun 25, 2018 · 1 revision

Three use cases:

  1. Everything statically known: a struct

    • Can be serialized, knows its types, knows its labels
  2. Type without clear semantic label: (f32, f32, f32)

    • Can be serialized, knows its type, different labels can be applied
  3. 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.

Clone this wiki locally