Struct gix_revision::PriorityQueue
source · pub struct PriorityQueue<K: Ord, T>(_);
Expand description
A utility type implementing a queue which can be used to automatically sort data by its time in ascending order.
Note that the performance of this queue is very relevant to overall algorithm performance of many graph-walking algorithms, and as it stands our implementation is about 6% slower in practice, probably also depending on the size of the stored data.
Implementations§
source§impl<K: Ord, T> PriorityQueue<K, T>
impl<K: Ord, T> PriorityQueue<K, T>
Trait Implementations§
source§impl<K: Default + Ord, T: Default> Default for PriorityQueue<K, T>
impl<K: Default + Ord, T: Default> Default for PriorityQueue<K, T>
source§fn default() -> PriorityQueue<K, T>
fn default() -> PriorityQueue<K, T>
Returns the “default value” for a type. Read more
source§impl<K: Ord, T> FromIterator<(K, T)> for PriorityQueue<K, T>
impl<K: Ord, T> FromIterator<(K, T)> for PriorityQueue<K, T>
Auto Trait Implementations§
impl<K, T> RefUnwindSafe for PriorityQueue<K, T>where K: RefUnwindSafe, T: RefUnwindSafe,
impl<K, T> Send for PriorityQueue<K, T>where K: Send, T: Send,
impl<K, T> Sync for PriorityQueue<K, T>where K: Sync, T: Sync,
impl<K, T> Unpin for PriorityQueue<K, T>where K: Unpin, T: Unpin,
impl<K, T> UnwindSafe for PriorityQueue<K, T>where K: UnwindSafe, T: 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