Skip to content

Commit dff2b17

Browse files
committed
Rename Element -> _Element
1 parent faabdf7 commit dff2b17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/PriorityQueueModule/PriorityQueue.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public struct PriorityQueue<Value, Priority: Comparable> {
1616
public typealias Pair = (value: Value, priority: Priority)
1717

1818
@usableFromInline
19-
struct Element: Comparable {
19+
struct _Element: Comparable {
2020
@usableFromInline let value: Value
2121
let priority: Priority
2222
let insertionCounter: UInt64
@@ -46,7 +46,7 @@ public struct PriorityQueue<Value, Priority: Comparable> {
4646
}
4747

4848
@usableFromInline
49-
internal var _base: Heap<Element>
49+
internal var _base: Heap<_Element>
5050

5151
@usableFromInline
5252
internal var _insertionCounter: UInt64 = 0
@@ -82,7 +82,7 @@ public struct PriorityQueue<Value, Priority: Comparable> {
8282
public mutating func insert(_ value: Value, priority: Priority) {
8383
defer { _insertionCounter += 1 }
8484

85-
let pair = Element(
85+
let pair = _Element(
8686
value: value,
8787
priority: priority,
8888
insertionCounter: _insertionCounter
@@ -156,7 +156,7 @@ extension PriorityQueue {
156156
elements
157157
.enumerated()
158158
.map({
159-
Element(
159+
_Element(
160160
value: $0.element.value,
161161
priority: $0.element.priority,
162162
insertionCounter: UInt64($0.offset)

0 commit comments

Comments
 (0)