Skip to main content

TrieTableAdapter

Trait TrieTableAdapter 

Source
pub trait TrieTableAdapter: TrieKeyAdapter {
    type AccountTrieTable: Table<Key = Self::AccountKey, Value = BranchNodeCompact>;
    type StorageTrieTable: Table<Key = FixedBytes<32>, Value = Self::StorageValue> + DupSort<SubKey = Self::StorageSubKey>;
}
Available on crate features trie-db and trie only.
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§

Source

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

The account trie table type.

Source

type StorageTrieTable: Table<Key = FixedBytes<32>, 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§