pub struct PreAllocatedAccountMapEntry<T: IndexValue> { /* private fields */ }Implementations§
Source§impl<T: IndexValue> PreAllocatedAccountMapEntry<T>
impl<T: IndexValue> PreAllocatedAccountMapEntry<T>
Sourcepub fn new(
slot: Slot,
account_info: T,
storage: &Arc<BucketMapHolder<T>>,
) -> PreAllocatedAccountMapEntry<T>
pub fn new( slot: Slot, account_info: T, storage: &Arc<BucketMapHolder<T>>, ) -> PreAllocatedAccountMapEntry<T>
create an entry that is equivalent to this process:
- new empty (refcount=0, slot_list={})
- update(slot, account_info) This code is called when the first entry [ie. (slot,account_info)] for a pubkey is inserted into the index.
Trait Implementations§
Source§impl<T: IndexValue> From<PreAllocatedAccountMapEntry<T>> for (Slot, T)
impl<T: IndexValue> From<PreAllocatedAccountMapEntry<T>> for (Slot, T)
Source§fn from(source: PreAllocatedAccountMapEntry<T>) -> (Slot, T)
fn from(source: PreAllocatedAccountMapEntry<T>) -> (Slot, T)
Converts to this type from the input type.
Source§impl<T: IndexValue> From<PreAllocatedAccountMapEntry<T>> for Arc<AccountMapEntryInner<T>>
impl<T: IndexValue> From<PreAllocatedAccountMapEntry<T>> for Arc<AccountMapEntryInner<T>>
Source§fn from(source: PreAllocatedAccountMapEntry<T>) -> Arc<AccountMapEntryInner<T>>
fn from(source: PreAllocatedAccountMapEntry<T>) -> Arc<AccountMapEntryInner<T>>
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for PreAllocatedAccountMapEntry<T>
impl<T> RefUnwindSafe for PreAllocatedAccountMapEntry<T>
impl<T> Send for PreAllocatedAccountMapEntry<T>
impl<T> Sync for PreAllocatedAccountMapEntry<T>
impl<T> Unpin for PreAllocatedAccountMapEntry<T>
impl<T> UnwindSafe for PreAllocatedAccountMapEntry<T>
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