Skip to main content

TrieTableAdapter

Trait TrieTableAdapter 

Source
pub trait TrieTableAdapter: TrieKeyAdapter {
    type AccountTrieTable: Table<Key = Self::AccountKey, Value = BranchNodeCompact>;
    type StorageTrieTable: Table<Key = B256, Value = Self::StorageValue> + DupSort<SubKey = Self::StorageSubKey>;
}
Expand description

Maps a TrieKeyAdapter to account and storage trie tables using its key and value types.

The selected table types must match the database’s stored nibble encoding.

Required Associated Types§

Source

type AccountTrieTable: Table<Key = Self::AccountKey, Value = BranchNodeCompact>

The account trie table type.

Source

type StorageTrieTable: Table<Key = B256, Value = Self::StorageValue> + DupSort<SubKey = Self::StorageSubKey>

The storage trie table type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§