pub struct DijkstraPerformanceCounter {
    pub iterations: u64,
    pub unnecessary_heap_elements: u64,
}
Expand description

A simple performance counter for Dijkstra’s algorithm, keeping all supported counts.

Fields

iterations: u64

The number of iterations of the main loop of Dijkstra’s algorithm.

unnecessary_heap_elements: u64

The number of unnecessary heap elements.

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

Performs the += operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Increment the number of iterations of the main loop of Dijkstra’s algorithm.

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

Get the number of iterations of the main loop of Dijkstra’s algorithm.

Get the number of unnecessary heap elements that were inserted during Dijkstra’s algorithm.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.