pub struct MultiProofTargetsV2 {
pub account_targets: Vec<ProofV2Target>,
pub storage_targets: B256Map<Vec<ProofV2Target>>,
}Expand description
A set of account and storage V2 proof targets. The account and storage targets do not need to necessarily overlap.
Fields§
§account_targets: Vec<ProofV2Target>The set of account proof targets to generate proofs for.
storage_targets: B256Map<Vec<ProofV2Target>>The sets of storage proof targets to generate proofs for.
Implementations§
Source§impl MultiProofTargetsV2
impl MultiProofTargetsV2
Sourcepub fn chunking_length(&self) -> usize
pub fn chunking_length(&self) -> usize
Returns the number of items that will be considered during chunking.
Sourcepub fn chunks(self, chunk_size: usize) -> impl Iterator<Item = Self>
pub fn chunks(self, chunk_size: usize) -> impl Iterator<Item = Self>
Returns an iterator that yields chunks of the specified size.
§Panics
Panics if the chunk size is zero.
Sourcepub fn from_account_changes<'a>(
changes: impl IntoIterator<Item = AccountChanges<'a>>,
) -> (Self, usize)
pub fn from_account_changes<'a>( changes: impl IntoIterator<Item = AccountChanges<'a>>, ) -> (Self, usize)
Returns a set of MultiProofTargetsV2 and the total amount of storage targets, based on
the given account changes.
Accounts that were not changed, or that were selfdestructed, get no targets. Since selfdestruct can only happen in the creating transaction, proofs for those accounts are not worth prefetching.
Trait Implementations§
Source§impl Debug for MultiProofTargetsV2
impl Debug for MultiProofTargetsV2
Auto Trait Implementations§
impl Freeze for MultiProofTargetsV2
impl RefUnwindSafe for MultiProofTargetsV2
impl Send for MultiProofTargetsV2
impl Sync for MultiProofTargetsV2
impl Unpin for MultiProofTargetsV2
impl UnsafeUnpin for MultiProofTargetsV2
impl UnwindSafe for MultiProofTargetsV2
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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 moreimpl<T> MaybeDebug for Twhere
T: Debug,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
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