Expand description
Deduplication of repeated values in the serialized output.
Note that the deduplication scheme is order-dependent: it relies on the fact that serialization and deserialization traverse the value in the same order.
Structs§
- DedupId
- Identifies a deduplicated value amongst the values of its type within a single serialized output. Ids are allocated in the order in which we serialize the values.
- Dedup
Serializer - Deduplicate the values of each type, in one table per type.
- Deserialize
Table 🔒Mapper - Serialize
Table 🔒Mapper
Enums§
- SerDedup
- How we represent a deduplicated value in the serialized output.
Tis the serialized form of the value.
Traits§
- Dedup
- A value that we deduplicate in the serialized output. We identify values by equality, hence the bounds.
- Dedup
Serializer State - The state threaded through (de)serialization to deduplicate values. Use
()to serialize values normally andDedupSerializerto deduplicate them.
Functions§
- deserialize_
dedup - Deserialize a value that may have been deduplicated.
buildreconstructs the value from its serialized form. - serialize_
dedup - Serialize
value, deduplicating it if the state says so.repris the serialized form ofvalue, only used the first time we meet it. - stateless_
deserialize_ error - The error we report when a deduplicated value is deserialized with serde’s stateless
Deserializeimpl, which can’t resolve the ids.