Priority
enum Priority
extension Priority : Comparable, Equatable, Hashable, RawRepresentable
An enum representing priority for a listener
-
Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.
This function is the only requirement of the
Comparableprotocol. The remainder of the relational operator functions are implemented by the standard library for any type that conforms toComparable.Declaration
Swift
static func < (lhs: Priority, rhs: Priority) -> BoolParameters
lhsA value to compare.
rhsAnother value to compare.
-
Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw value, this initializer returns
nil. For example:enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional("PaperSize.Legal")" print(PaperSize(rawValue: "Tabloid")) // Prints "nil"Declaration
Swift
init?(rawValue: Int)
View on GitHub
Install in Dash
Priority Enumeration Reference