Expand description

Ensure that the last value is taken, if duplicate values exist

By default serde has a first-value-wins implementation, if duplicate keys for a set exist. Sometimes the opposite strategy is desired. This helper implements a first-value-wins strategy.

The implementation supports both the HashSet and the BTreeSet from the standard library.

Functions

Deserialize a set and keep the last of equal values
Serialize the set with the default serializer