Skip to main content

Module priority_queue

Module priority_queue 

Source
Expand description

Priority queue implementation for agent scheduling.

Uses a BinaryHeap for O(log n) push/pop with a HashMap for O(1) membership checks. The index tracks presence only — not heap positions, which are unstable across operations.

Structs§

PriorityQueue
Priority queue for scheduled tasks.

Traits§

HasAgentId
Trait for items that have an agent ID.