HashedStorageCursor

Trait HashedStorageCursor 

Source
pub trait HashedStorageCursor: HashedCursor {
    // Required methods
    fn is_storage_empty(&mut self) -> Result<bool, DatabaseError>;
    fn set_hashed_address(&mut self, hashed_address: FixedBytes<32>);
}
Available on crate feature trie only.
Expand description

The cursor for iterating over hashed storage entries.

Required Methods§

Source

fn is_storage_empty(&mut self) -> Result<bool, DatabaseError>

Returns true if there are no entries for a given key.

Source

fn set_hashed_address(&mut self, hashed_address: FixedBytes<32>)

Set the hashed address for the storage cursor.

§Important

After calling this method, the subsequent operation MUST be a HashedCursor::seek call.

Implementations on Foreign Types§

Source§

impl<'a, T> HashedStorageCursor for &'a mut T

Source§

fn is_storage_empty(&mut self) -> Result<bool, DatabaseError>

Source§

fn set_hashed_address(&mut self, hashed_address: FixedBytes<32>)

Implementors§

Source§

impl HashedStorageCursor for NoopHashedCursor<Uint<256, 4>>

Source§

impl<'metrics, C> HashedStorageCursor for InstrumentedHashedCursor<'metrics, C>

Source§

impl<C> HashedStorageCursor for DatabaseHashedStorageCursor<C>

Source§

impl<C> HashedStorageCursor for HashedPostStateCursor<'_, C, Uint<256, 4>>
where C: HashedStorageCursor<Value = Uint<256, 4>>,

The cursor to iterate over post state hashed values and corresponding database entries. It will always give precedence to the data from the post state.

Source§

impl<T> HashedStorageCursor for MockHashedCursor<T>
where T: Debug + Clone,