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