pub struct FixedHeapDestinationIdentityTable<const CAPACITY: usize, const INDEX_BUCKETS: usize, A = Global>where
A: Allocator,{ /* private fields */ }Trait Implementations§
Source§impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> Default for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> Default for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>
Source§fn default() -> FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>
fn default() -> FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>
Returns the “default value” for a type. Read more
Source§impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> DestinationIdentityTable for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
A: Allocator,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> DestinationIdentityTable for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
A: Allocator,
fn capacity(&self) -> usize
fn len(&self) -> usize
fn index_of(&self, destination: &DestinationHash) -> Option<usize>
fn destinations(&self) -> &[DestinationHash]
fn public_keys(&self) -> &[IdentityPublicKeys]
fn announced_at(&self) -> &[InstantMillis]
fn retention(&self) -> &[DestinationIdentityRetentionState]
fn app_data_handles(&self) -> &[AppDataHandle]
fn set_row(&mut self, index: usize, record: DestinationIdentityRecord)
fn push( &mut self, destination: DestinationHash, record: DestinationIdentityRecord, ) -> Result<usize, TablePushError>
fn swap_remove(&mut self, index: usize)
fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> Freeze for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
A: Freeze,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> RefUnwindSafe for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
A: RefUnwindSafe,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> Send for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
A: Send,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> Sync for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
A: Sync,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> Unpin for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> UnsafeUnpin for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
A: UnsafeUnpin,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> UnwindSafe for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
A: 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