pub struct BalDiff {
pub left_accounts: usize,
pub right_accounts: usize,
pub first_diff: Option<AccountDiff>,
}Expand description
Compact summary of the first difference between two block access lists.
The diff only reports the first account position that differs. This keeps diagnostics cheap for callers that only need enough context to explain why two BALs do not hash to the same value.
Fields§
§left_accounts: usizeNumber of account entries in the left-hand BAL.
right_accounts: usizeNumber of account entries in the right-hand BAL.
first_diff: Option<AccountDiff>First account-level difference, if any.
Implementations§
Trait Implementations§
impl Eq for BalDiff
impl StructuralPartialEq for BalDiff
Auto Trait Implementations§
impl Freeze for BalDiff
impl RefUnwindSafe for BalDiff
impl Send for BalDiff
impl Sync for BalDiff
impl Unpin for BalDiff
impl UnsafeUnpin for BalDiff
impl UnwindSafe for BalDiff
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: 176 bytes