StrictOrdering
public enum StrictOrdering : Hashable, Sendable
The result type of a three-way comparison implementing a strict total order.
-
The LHS is ordered before the RHS.
Declaration
Swift
case ascending -
The LHS is neither ordered before nor ordered after the RHS.
Declaration
Swift
case equal -
The LHS is ordered after the RHS.
Declaration
Swift
case descending -
Creates the comparison of
awithb.Declaration
Swift
public init<T>(between a: T, and b: T) where T : Comparable
View on GitHub