Struct alloy_consensus::TrieAccount
source · pub struct TrieAccount {
pub nonce: u64,
pub balance: Uint<256, 4>,
pub storage_root: FixedBytes<32>,
pub code_hash: FixedBytes<32>,
}
Expand description
Represents an TrieAccount in the account trie.
Fields§
§nonce: u64
The account’s nonce.
balance: Uint<256, 4>
The account’s balance.
storage_root: FixedBytes<32>
The hash of the storage account data.
code_hash: FixedBytes<32>
The hash of the code of the account.
Implementations§
source§impl TrieAccount
impl TrieAccount
sourcepub fn trie_hash_slow(&self) -> FixedBytes<32>
pub fn trie_hash_slow(&self) -> FixedBytes<32>
Compute hash as committed to in the MPT trie without memorizing.
Trait Implementations§
source§impl Clone for TrieAccount
impl Clone for TrieAccount
source§fn clone(&self) -> TrieAccount
fn clone(&self) -> TrieAccount
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TrieAccount
impl Debug for TrieAccount
source§impl Decodable for TrieAccount
impl Decodable for TrieAccount
source§impl Default for TrieAccount
impl Default for TrieAccount
source§fn default() -> TrieAccount
fn default() -> TrieAccount
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TrieAccount
impl<'de> Deserialize<'de> for TrieAccount
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TrieAccount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TrieAccount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encodable for TrieAccount
impl Encodable for TrieAccount
source§impl PartialEq for TrieAccount
impl PartialEq for TrieAccount
source§fn eq(&self, other: &TrieAccount) -> bool
fn eq(&self, other: &TrieAccount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TrieAccount
impl Serialize for TrieAccount
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for TrieAccount
impl Eq for TrieAccount
impl StructuralPartialEq for TrieAccount
Auto Trait Implementations§
impl Freeze for TrieAccount
impl RefUnwindSafe for TrieAccount
impl Send for TrieAccount
impl Sync for TrieAccount
impl Unpin for TrieAccount
impl UnwindSafe for TrieAccount
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.