Crate memory_db[−][src]
Reference-counted memory-based HashDB
implementation.
Structs
HashKey | Key function that only uses the hash |
LegacyPrefixedKey | Deprecated Key function that concatenates prefix and hash. This is doing useless computation and should only be used for legacy purpose. It shall be remove in the future. |
MemCounter |
|
MemoryDB | Reference-counted memory-based |
NoopTracker | No-op |
PrefixedKey | Key function that concatenates prefix and hash. |
Traits
KeyFunction | |
MaybeDebug | |
MemTracker | Used to implement incremental evaluation of |
Functions
hash_key | Make database key from hash only. |
legacy_prefixed_key | Deprecated Legacy method for db using previous version of prefix encoding. Only for trie radix 16 trie. |
prefixed_key | Derive a database key from hash value of the node (key) and the node prefix. |
Type Definitions
DefaultMemTracker | The default memory tracker used by |