pub struct FixedHeapLinkTable<const MAX_LINKS: usize, A = Global>where
A: Allocator,{ /* private fields */ }Trait Implementations§
Source§impl<const MAX_LINKS: usize, A> Default for FixedHeapLinkTable<MAX_LINKS, A>
impl<const MAX_LINKS: usize, A> Default for FixedHeapLinkTable<MAX_LINKS, A>
Source§fn default() -> FixedHeapLinkTable<MAX_LINKS, A>
fn default() -> FixedHeapLinkTable<MAX_LINKS, A>
Returns the “default value” for a type. Read more
Source§impl<const MAX_LINKS: usize, A> LinkTable for FixedHeapLinkTable<MAX_LINKS, A>where
A: Allocator,
impl<const MAX_LINKS: usize, A> LinkTable for FixedHeapLinkTable<MAX_LINKS, A>where
A: Allocator,
fn capacity(&self) -> usize
fn len(&self) -> usize
fn link_ids(&self) -> &[LinkId]
fn timeout_ats(&self) -> &[Option<InstantMillis>]
fn phases(&self) -> &[LinkPhase]
fn phase_mut(&mut self, index: usize) -> &mut LinkPhase
fn set_timeout_at(&mut self, index: usize, timeout_at: Option<InstantMillis>)
fn push( &mut self, link_id: LinkId, phase: LinkPhase, timeout_at: Option<InstantMillis>, ) -> Result<usize, TrackLinkError>
fn swap_remove(&mut self, index: usize)
fn is_empty(&self) -> bool
fn index_of(&self, link_id: &LinkId) -> Option<usize>
fn earliest_indexed_timeout(&mut self) -> Option<InstantMillis>
fn first_due_timeout_matching<P>( &mut self, now: InstantMillis, predicate: P, ) -> Option<usize>
Auto Trait Implementations§
impl<const MAX_LINKS: usize, A> Freeze for FixedHeapLinkTable<MAX_LINKS, A>where
A: Freeze,
impl<const MAX_LINKS: usize, A> RefUnwindSafe for FixedHeapLinkTable<MAX_LINKS, A>where
A: RefUnwindSafe,
impl<const MAX_LINKS: usize, A> Send for FixedHeapLinkTable<MAX_LINKS, A>where
A: Send,
impl<const MAX_LINKS: usize, A> Sync for FixedHeapLinkTable<MAX_LINKS, A>where
A: Sync,
impl<const MAX_LINKS: usize, A> Unpin for FixedHeapLinkTable<MAX_LINKS, A>where
A: Unpin,
impl<const MAX_LINKS: usize, A> UnsafeUnpin for FixedHeapLinkTable<MAX_LINKS, A>where
A: UnsafeUnpin,
impl<const MAX_LINKS: usize, A> UnwindSafe for FixedHeapLinkTable<MAX_LINKS, 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