Struct gemachain_runtime::accounts_index::PreAllocatedAccountMapEntry [−][src]
pub struct PreAllocatedAccountMapEntry<T: IndexValue> { /* fields omitted */ }
Implementations
pub 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
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more