pub struct AccountFieldDiff {
pub storage_changes: bool,
pub storage_reads: bool,
pub balance_changes: bool,
pub nonce_changes: bool,
pub code_changes: bool,
}Expand description
Per-field difference flags for account entries with the same address.
Fields§
§storage_changes: booltrue if storage_changes differ.
storage_reads: booltrue if storage_reads differ.
balance_changes: booltrue if balance_changes differ.
nonce_changes: booltrue if nonce_changes differ.
code_changes: booltrue if code_changes differ.
Implementations§
Source§impl AccountFieldDiff
impl AccountFieldDiff
Sourcepub fn new(left: &AccountChanges, right: &AccountChanges) -> AccountFieldDiff
pub fn new(left: &AccountChanges, right: &AccountChanges) -> AccountFieldDiff
Creates field-level diff flags for account entries with the same address.
Sourcepub const fn is_divergent(&self) -> bool
pub const fn is_divergent(&self) -> bool
Returns true if any account field differs.
Trait Implementations§
Source§impl Clone for AccountFieldDiff
impl Clone for AccountFieldDiff
Source§fn clone(&self) -> AccountFieldDiff
fn clone(&self) -> AccountFieldDiff
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 AccountFieldDiff
Source§impl Debug for AccountFieldDiff
impl Debug for AccountFieldDiff
Source§impl Default for AccountFieldDiff
impl Default for AccountFieldDiff
Source§fn default() -> AccountFieldDiff
fn default() -> AccountFieldDiff
Returns the “default value” for a type. Read more
Source§impl Display for AccountFieldDiff
impl Display for AccountFieldDiff
impl Eq for AccountFieldDiff
Source§impl PartialEq for AccountFieldDiff
impl PartialEq for AccountFieldDiff
Source§fn eq(&self, other: &AccountFieldDiff) -> bool
fn eq(&self, other: &AccountFieldDiff) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AccountFieldDiff
Auto Trait Implementations§
impl Freeze for AccountFieldDiff
impl RefUnwindSafe for AccountFieldDiff
impl Send for AccountFieldDiff
impl Sync for AccountFieldDiff
impl Unpin for AccountFieldDiff
impl UnsafeUnpin for AccountFieldDiff
impl UnwindSafe for AccountFieldDiff
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: 5 bytes