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
Helper trait to map a TrieKeyAdapter to the correct table types.
This indirection is needed because the tables! macro generates non-generic
table types, so we use separate “view” types for packed encoding that share
the same MDBX table name.
Required Associated Types§
Sourcetype AccountTrieTable: Table<Key = Self::AccountKey, Value = BranchNodeCompact>
type AccountTrieTable: Table<Key = Self::AccountKey, Value = BranchNodeCompact>
The account trie table type.
Sourcetype StorageTrieTable: Table<Key = B256, Value = Self::StorageValue> + DupSort<SubKey = Self::StorageSubKey>
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".