Struct RunTable
pub struct RunTable { /* private fields */ }Expand description
See the module documentation.
Implementations§
§impl RunTable
impl RunTable
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn heap_bytes(&self) -> usize
pub fn heap_bytes(&self) -> usize
Heap bytes held by the table and its indexes.
pub fn get(&self, slot: Slot) -> &Entry
pub fn get_mut(&mut self, slot: Slot) -> &mut Entry
pub fn find_run(&self, run: RunId) -> Option<Slot>
pub fn has_run(&self, run: RunId) -> bool
pub fn has_run(&self, run: RunId) -> bool
Whether run has an entry. Unlike find_run it
leaves the recent-lookup cache alone: a listing probes many numbers,
and the step path’s cache should not pay for it.
pub fn insert(&mut self, e: Entry) -> Slot
pub fn insert(&mut self, e: Entry) -> Slot
Adds an entry for a run not in the table. The ID index is separate:
see index_id.
pub fn index_id(&mut self, slot: Slot)
pub fn index_id(&mut self, slot: Slot)
Makes slot the entry its ID hash finds, unless a later run of the
same ID holds the place (the latest run for an ID wins).
pub fn remove(&mut self, slot: Slot) -> Entry
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RunTable
impl !RefUnwindSafe for RunTable
impl !Sync for RunTable
impl Forget for RunTable
impl Move for RunTable
impl Send for RunTable
impl Unpin for RunTable
impl UnsafeUnpin for RunTable
impl UnwindSafe for RunTable
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