pub trait DatabaseHashedPostState<TX>: Sized {
// Required method
fn from_reverts<KH>(
tx: &TX,
range: impl RangeBounds<u64>,
) -> Result<HashedPostStateSorted, DatabaseError>
where KH: KeyHasher;
}Available on crate features
trie and trie-db only.Expand description
Extends HashedPostStateSorted with operations specific for working with a database
transaction.
Required Methods§
Sourcefn from_reverts<KH>(
tx: &TX,
range: impl RangeBounds<u64>,
) -> Result<HashedPostStateSorted, DatabaseError>where
KH: KeyHasher,
fn from_reverts<KH>(
tx: &TX,
range: impl RangeBounds<u64>,
) -> Result<HashedPostStateSorted, DatabaseError>where
KH: KeyHasher,
Initializes HashedPostStateSorted from reverts. Iterates over state reverts in the
specified range and aggregates them into sorted hashed state.
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.