PriorityQueueElement
public struct PriorityQueueElement<Priority, Payload> where Priority : Comparable
extension PriorityQueueElement: Equatable, Comparable
A comparable tuple containing a comparable priority and an arbitrary payload.
-
The priority of the payload.
Declaration
Swift
public var priority: Priority
-
The element
Declaration
Swift
public let payload: Payload
-
Undocumented
Declaration
Swift
public init(priority: Priority, payload: Payload)
-
Returns
true
if the priorities oflhs
andrhs
are equal, false otherwise.Declaration
Swift
public static func == (lhs: `Self`, rhs: `Self`) -> Bool
-
Returns
true
if the priority oflhs
is lower than the priority ofrhs
.Declaration
Swift
public static func < (lhs: `Self`, rhs: `Self`) -> Bool