Crate delta_collections

Source
Expand description

Data structures with delta entries that enables quick unstage of the recent changes. Implementation-wise, the data structures keeps a delta structure that records the additional changes on the base structure. Take the HashMap for example, the user can call DeltaHashMap::commit to merge the additional changes into the base map. However, if the user is unsatisfied with the result of the specific layer of operation, the changes that happens after the layer can be discarded on demand by calling DeltaHashMap::unstage.

See DeltaHashMap::commit, DeltaHashMap::unstage and DeltaHashMap::cocommit for more information.

Modules§

entry
An (incomplete) entry API implementation.
iter
Iterator implementations.

Structs§

DeltaHashMap
A hashmap with delta entries. A change will eventually be committed from delta down to base by calling Self::commit. If the user is unsatisfied with the result of a specific layer of operation, the changes that happens after the layer can be discarded on demand by calling Self::unstage.