Trait savefile::WithSchema [−][src]
Expand description
This trait must be implemented by all data structures you wish to be able to save. It must encode the schema for the datastructure when saved using the given version number. When files are saved, the schema is encoded into the file. when loading, the schema is inspected to make sure that the load will safely succeed. This is only for increased safety, the file format does not in fact use the schema for any other purpose, the design is schema-less at the core, the schema is just an added layer of safety (which can be disabled).
Required methods
Implementations on Foreign Types
impl<K: WithSchema + Eq + Hash, V: WithSchema, S: BuildHasher> WithSchema for IndexMap<K, V, S>
[src]
impl<K: WithSchema + Eq + Hash, V: WithSchema, S: BuildHasher> WithSchema for IndexMap<K, V, S>
[src]