pub struct IndexEntryPlaceInBucket<T: 'static> {
pub ix: u64,
_phantom: PhantomData<&'static T>,
}
Expand description
contains the index of an entry in the index bucket. This type allows us to call methods to interact with the index entry on this type.
Fields§
§ix: u64
§_phantom: PhantomData<&'static T>
Implementations§
source§impl<T: Copy + 'static> IndexEntryPlaceInBucket<T>
impl<T: Copy + 'static> IndexEntryPlaceInBucket<T>
pub(crate) fn get_slot_count_enum<'a>( &self, index_bucket: &'a BucketStorage<IndexBucketUsingBitVecBits<T>> ) -> OccupiedEnum<'a, T>
sourcepub(crate) fn get_multiple_slots_mut<'a>(
&self,
index_bucket: &'a mut BucketStorage<IndexBucketUsingBitVecBits<T>>
) -> Option<&'a mut MultipleSlots>
pub(crate) fn get_multiple_slots_mut<'a>( &self, index_bucket: &'a mut BucketStorage<IndexBucketUsingBitVecBits<T>> ) -> Option<&'a mut MultipleSlots>
return Some(MultipleSlots) if this item’s data is stored in the data file
sourcepub(crate) fn set_slot_count_enum_value<'a>(
&self,
index_bucket: &'a mut BucketStorage<IndexBucketUsingBitVecBits<T>>,
value: OccupiedEnum<'a, T>
)
pub(crate) fn set_slot_count_enum_value<'a>( &self, index_bucket: &'a mut BucketStorage<IndexBucketUsingBitVecBits<T>>, value: OccupiedEnum<'a, T> )
make this index entry reflect value
pub fn init( &self, index_bucket: &mut BucketStorage<IndexBucketUsingBitVecBits<T>>, pubkey: &Pubkey )
pub(crate) fn read_value<'a>( &self, index_bucket: &'a BucketStorage<IndexBucketUsingBitVecBits<T>>, data_buckets: &'a [BucketStorage<BucketWithHeader>] ) -> (&'a [T], RefCount)
pub fn new(ix: u64) -> Self
pub fn key<'a>( &self, index_bucket: &'a BucketStorage<IndexBucketUsingBitVecBits<T>> ) -> &'a Pubkey
Auto Trait Implementations§
impl<T> RefUnwindSafe for IndexEntryPlaceInBucket<T>where T: RefUnwindSafe,
impl<T> Send for IndexEntryPlaceInBucket<T>where T: Sync,
impl<T> Sync for IndexEntryPlaceInBucket<T>where T: Sync,
impl<T> Unpin for IndexEntryPlaceInBucket<T>
impl<T> UnwindSafe for IndexEntryPlaceInBucket<T>where T: RefUnwindSafe,
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