pub struct SortedStorages<'a> { /* private fields */ }
Expand description
Provide access to SnapshotStorageOnes by slot
Implementations§
source§impl<'a> SortedStorages<'a>
impl<'a> SortedStorages<'a>
sourcepub fn iter_range<R>(&'a self, range: &R) -> SortedStoragesIter<'a> ⓘwhere
R: RangeBounds<Slot>,
pub fn iter_range<R>(&'a self, range: &R) -> SortedStoragesIter<'a> ⓘwhere
R: RangeBounds<Slot>,
primary method of retrieving [(Slot, Arc<AccountStorageEntry>)
]
pub fn range_width(&self) -> Slot
pub fn range(&self) -> &Range<Slot>
pub fn max_slot_inclusive(&self) -> Slot
pub fn slot_count(&self) -> usize
pub fn storage_count(&self) -> usize
pub fn new(source: &'a [Arc<AccountStorageEntry>]) -> Self
sourcepub fn new_with_slots(
source: impl Iterator<Item = (&'a Arc<AccountStorageEntry>, Slot)> + Clone,
min_slot: Option<Slot>,
max_slot_inclusive: Option<Slot>,
) -> Self
pub fn new_with_slots( source: impl Iterator<Item = (&'a Arc<AccountStorageEntry>, Slot)> + Clone, min_slot: Option<Slot>, max_slot_inclusive: Option<Slot>, ) -> Self
create SortedStorages
from source
iterator.
source
contains a Arc<AccountStorageEntry>
and its associated slot
source
does not have to be sorted in any way, but is assumed to not have duplicate slot #s
Auto Trait Implementations§
impl<'a> Freeze for SortedStorages<'a>
impl<'a> !RefUnwindSafe for SortedStorages<'a>
impl<'a> Send for SortedStorages<'a>
impl<'a> Sync for SortedStorages<'a>
impl<'a> Unpin for SortedStorages<'a>
impl<'a> !UnwindSafe for SortedStorages<'a>
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
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 more