pub struct SimpleBlockStore<E> {
pub slot: Slot,
pub events: Vec<E>,
pub account_idx_map: Vec<usize>,
pub transaction_idx_map: Vec<usize>,
pub entry_idx_map: Vec<usize>,
pub other_idx_map: Vec<usize>,
}Fields§
§slot: Slot§events: Vec<E>§account_idx_map: Vec<usize>§transaction_idx_map: Vec<usize>§entry_idx_map: Vec<usize>§other_idx_map: Vec<usize>Trait Implementations§
Source§impl<E> BlockEventStore for SimpleBlockStore<E>
impl<E> BlockEventStore for SimpleBlockStore<E>
type EventT = E
type Iter<'a> = SimpleBlockStoreIter<'a, E> where Self: 'a, E: 'a
type IntoIter = IntoIter<E>
fn len(&self) -> usize
fn iter(&self) -> Self::Iter<'_>
Source§fn account_iter(&self) -> Self::Iter<'_>
fn account_iter(&self) -> Self::Iter<'_>
Returns an iterator over the events in this block that are accounts.
Source§fn transaction_iter(&self) -> Self::Iter<'_>
fn transaction_iter(&self) -> Self::Iter<'_>
Returns an iterator over the events in this block that are transactions.
Source§fn entry_iter(&self) -> Self::Iter<'_>
fn entry_iter(&self) -> Self::Iter<'_>
Returns an iterator over the events in this block that are entries.
Source§fn other_iter(&self) -> Self::Iter<'_>
fn other_iter(&self) -> Self::Iter<'_>
Returns an iterator over the events in this block that are neither accounts, transactions, nor entries.
Source§fn account_len(&self) -> usize
fn account_len(&self) -> usize
Returns the number of account events in this block.
Source§fn transaction_len(&self) -> usize
fn transaction_len(&self) -> usize
Returns the number of transaction events in this block.
Source§fn other_len(&self) -> usize
fn other_len(&self) -> usize
Returns the number of events in this block that are neither accounts, transactions, nor entries.
fn into_iter(self) -> Self::IntoIter
fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<E> Freeze for SimpleBlockStore<E>
impl<E> RefUnwindSafe for SimpleBlockStore<E>where
E: RefUnwindSafe,
impl<E> Send for SimpleBlockStore<E>where
E: Send,
impl<E> Sync for SimpleBlockStore<E>where
E: Sync,
impl<E> Unpin for SimpleBlockStore<E>where
E: Unpin,
impl<E> UnsafeUnpin for SimpleBlockStore<E>
impl<E> UnwindSafe for SimpleBlockStore<E>where
E: UnwindSafe,
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