pub struct AccountSummary {
pub address: Address,
pub storage_changes: usize,
pub storage_reads: usize,
pub balance_changes: usize,
pub nonce_changes: usize,
pub code_changes: usize,
}Expand description
Compact account summary included in AccountDiff.
Fields§
§address: AddressAccount address for this BAL entry.
storage_changes: usizeNumber of changed storage slots.
storage_reads: usizeNumber of read storage slots.
balance_changes: usizeNumber of balance changes.
nonce_changes: usizeNumber of nonce changes.
code_changes: usizeNumber of code changes.
Implementations§
Source§impl AccountSummary
impl AccountSummary
Sourcepub const fn from_account(account: &AccountChanges) -> AccountSummary
pub const fn from_account(account: &AccountChanges) -> AccountSummary
Creates a summary from a BAL account entry.
Trait Implementations§
Source§impl Clone for AccountSummary
impl Clone for AccountSummary
Source§fn clone(&self) -> AccountSummary
fn clone(&self) -> AccountSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AccountSummary
Source§impl Debug for AccountSummary
impl Debug for AccountSummary
Source§impl Display for AccountSummary
impl Display for AccountSummary
impl Eq for AccountSummary
Source§impl PartialEq for AccountSummary
impl PartialEq for AccountSummary
Source§fn eq(&self, other: &AccountSummary) -> bool
fn eq(&self, other: &AccountSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AccountSummary
Auto Trait Implementations§
impl Freeze for AccountSummary
impl RefUnwindSafe for AccountSummary
impl Send for AccountSummary
impl Sync for AccountSummary
impl Unpin for AccountSummary
impl UnsafeUnpin for AccountSummary
impl UnwindSafe for AccountSummary
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes