pub trait TrieCursorFactory {
    type AccountTrieCursor<'a>: TrieCursor
       where Self: 'a;
    type StorageTrieCursor<'a>: TrieCursor
       where Self: 'a;
    // Required methods
    fn account_trie_cursor(
        &self,
    ) -> Result<Self::AccountTrieCursor<'_>, DatabaseError>;
    fn storage_trie_cursor(
        &self,
        hashed_address: FixedBytes<32>,
    ) -> Result<Self::StorageTrieCursor<'_>, DatabaseError>;
}Available on crate feature 
trie only.Expand description
Factory for creating trie cursors.
Required Associated Types§
Sourcetype AccountTrieCursor<'a>: TrieCursor
where
    Self: 'a
 
type AccountTrieCursor<'a>: TrieCursor where Self: 'a
The account trie cursor type.
Sourcetype StorageTrieCursor<'a>: TrieCursor
where
    Self: 'a
 
type StorageTrieCursor<'a>: TrieCursor where Self: 'a
The storage trie cursor type.
Required Methods§
Sourcefn account_trie_cursor(
    &self,
) -> Result<Self::AccountTrieCursor<'_>, DatabaseError>
 
fn account_trie_cursor( &self, ) -> Result<Self::AccountTrieCursor<'_>, DatabaseError>
Create an account trie cursor.
Sourcefn storage_trie_cursor(
    &self,
    hashed_address: FixedBytes<32>,
) -> Result<Self::StorageTrieCursor<'_>, DatabaseError>
 
fn storage_trie_cursor( &self, hashed_address: FixedBytes<32>, ) -> Result<Self::StorageTrieCursor<'_>, DatabaseError>
Create a storage tries cursor.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.