/// Data structures for the "pure" min-queues, supporting duplicates but no arbitrary updates mod binary_heap; pub use binary_heap::BinaryHeap; /// A data structure usable for backing a "pure" queue pub trait PureBacking: Send + Sync { /// Places an item into the queue fn add(&mut self, item: T); /// Removes the item with minimum priority, if it exists fn pop(&mut self) -> Option; /// The number of items in the queue fn len(&self) -> usize; }