[−][src]Crate sp_trie
Utility functions to interact with Substrate's Base-16 Modified Merkle Patricia tree ("trie").
Modules
| nibble_ops | Various re-exports from the |
| trie_types | This module is for non generic definition of trie type.
Only the |
Structs
| KeySpacedDB |
|
| KeySpacedDBMut |
|
| Layout | substrate trie layout |
| NodeCodec | Concrete implementation of a |
| Recorder | Various re-exports from the |
| TrieStream | Codec-flavored TrieStream. |
Enums
| Error | Error for trie node decoding. |
Statics
| EMPTY_PREFIX | Various re-exports from the |
Traits
| AsHashDB | Reexport from |
| HashDBT | Various re-exports from the |
| KeyFunction | Various re-exports from the |
| Query | Various re-exports from the |
| Trie | Various re-exports from the |
| TrieConfiguration | Various re-exports from the |
| TrieLayout | Various re-exports from the |
| TrieMut | Various re-exports from the |
Functions
| child_delta_trie_root | Determine a child trie root given a hash DB and delta values. H is the default hasher, but a generic implementation may ignore this type parameter and use other hashers. |
| child_trie_root | Determine a child trie root given its ordered contents, closed form. H is the default hasher, but a generic implementation may ignore this type parameter and use other hashers. |
| default_child_trie_root | Determine the default child trie root. |
| delta_trie_root | Determine a trie root given a hash DB and delta values. |
| for_keys_in_child_trie | Call |
| prefixed_key | Derive a database key from hash value of the node (key) and the node prefix. |
| read_child_trie_value | Read a value from the child trie. |
| read_child_trie_value_with | Read a value from the child trie with given query. |
| read_trie_value | Read a value from the trie. |
| read_trie_value_with | Read a value from the trie with given Query. |
| record_all_keys | Record all keys for a given root. |
Type Definitions
| CError | Various re-exports from the |
| DBValue | Various re-exports from the |
| GenericMemoryDB | Reexport from |
| HashDB | Reexport from |
| Lookup | Querying interface, as in |
| MemoryDB | Reexport from |
| PlainDB | Reexport from |
| PrefixedMemoryDB | Reexport from |
| TrieDB | Persistent trie database read-access interface for the a given hasher. |
| TrieDBMut | Persistent trie database write-access interface for the a given hasher. |
| TrieError | TrieDB error over |
| TrieHash | Hash type for a trie layout. |