pub struct NoopDijkstraPerformanceCounter;
Expand description
A performance counter for Dijkstra’s algorithm that ignores all counts.
Trait Implementations
sourceimpl AddAssign<NoopDijkstraPerformanceCounter> for NoopDijkstraPerformanceCounter
impl AddAssign<NoopDijkstraPerformanceCounter> for NoopDijkstraPerformanceCounter
sourcefn add_assign(&mut self, _rhs: Self)
fn add_assign(&mut self, _rhs: Self)
Performs the +=
operation. Read more
sourceimpl Clone for NoopDijkstraPerformanceCounter
impl Clone for NoopDijkstraPerformanceCounter
sourcefn clone(&self) -> NoopDijkstraPerformanceCounter
fn clone(&self) -> NoopDijkstraPerformanceCounter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for NoopDijkstraPerformanceCounter
impl Default for NoopDijkstraPerformanceCounter
sourcefn default() -> NoopDijkstraPerformanceCounter
fn default() -> NoopDijkstraPerformanceCounter
Returns the “default value” for a type. Read more
sourceimpl DijkstraPerformanceData for NoopDijkstraPerformanceCounter
impl DijkstraPerformanceData for NoopDijkstraPerformanceCounter
sourcefn add_iteration(&mut self)
fn add_iteration(&mut self)
Increment the number of iterations of the main loop of Dijkstra’s algorithm.
sourcefn add_unnecessary_heap_element(&mut self)
fn add_unnecessary_heap_element(&mut self)
Increment the number of heap elements that already have a lower weight than what was stored in the heap.
These are wasted cycles because our heap does not support the decrease_key
operation. Read more
sourcefn iterations(&self) -> Option<u64>
fn iterations(&self) -> Option<u64>
Get the number of iterations of the main loop of Dijkstra’s algorithm.
sourcefn unnecessary_heap_elements(&self) -> Option<u64>
fn unnecessary_heap_elements(&self) -> Option<u64>
Get the number of unnecessary heap elements that were inserted during Dijkstra’s algorithm.
impl Copy for NoopDijkstraPerformanceCounter
impl Eq for NoopDijkstraPerformanceCounter
impl StructuralEq for NoopDijkstraPerformanceCounter
impl StructuralPartialEq for NoopDijkstraPerformanceCounter
Auto Trait Implementations
impl RefUnwindSafe for NoopDijkstraPerformanceCounter
impl Send for NoopDijkstraPerformanceCounter
impl Sync for NoopDijkstraPerformanceCounter
impl Unpin for NoopDijkstraPerformanceCounter
impl UnwindSafe for NoopDijkstraPerformanceCounter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.