Push implements heap.Interface and inserts a new entry into the heap.
(x any)
| 45 | |
| 46 | // Push implements heap.Interface and inserts a new entry into the heap. |
| 47 | func (h *indexedHeap) Push(x any) { |
| 48 | h.pushInternal(x.(heapEntry)) //nolint:forcetypeassert,errcheck // Forced type assertion required to implement the heap.Interface interface |
| 49 | } |
| 50 | |
| 51 | // Pop implements heap.Interface and removes the last entry from the heap. |
| 52 | func (h *indexedHeap) Pop() any { |