Expand description
The MapView implements a map with ordered keys.
The MapView implements a map that can be modified.
This reproduces more or less the functionalities of the BTreeMap.
There are 3 different variants:
- The
ByteMapViewwhose keys are theVec<u8>and the values are a serializable typeV. The ordering of the entries is via the lexicographic order of the keys. - The
MapViewwhose keys are a serializable typeKand the value a serializable typeV. The ordering is via the order of the BCS serialized keys. - The
CustomMapViewwhose keys are a serializable typeKand the value a serializable typeV. The ordering is via the order of the custom serialized keys.
Structs§
- Byte
MapView - A view that supports inserting and removing values indexed by
Vec<u8>. - Custom
MapView - A map view that uses custom serialization
- MapView
- A
Viewthat has a type for keys. The ordering of the entries is determined by the serialization of the context.
Type Aliases§
- Hashed
Byte MapView - Type wrapping
ByteMapViewwhile memoizing the hash. - Hashed
Custom MapView - Type wrapping
CustomMapViewwhile memoizing the hash. - Hashed
MapView - Type wrapping
MapViewwhile memoizing the hash. - Historically
Hashed Byte MapView - Wrapper around
ByteMapViewto compute hashes based on the history of changes. - Historically
Hashed Custom MapView - Wrapper around
CustomMapViewto compute hashes based on the history of changes. - Historically
Hashed MapView - Wrapper around
MapViewto compute hashes based on the history of changes.