Structureswift 6.0.1FoundationEssentials
AnySortComparator
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
struct AnySortComparator
struct AnySortComparator
import FoundationEssentials
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
@preconcurrency protocol SortComparator<Compared> : Hashable, Sendable
A comparison algorithm for a given type.
init<Comparator>(_ comparator: Comparator) where Comparator : SortComparator
var order: SortOrder { get set }
static func == (lhs: AnySortComparator, rhs: AnySortComparator) -> Bool
func compare(_ lhs: Any, _ rhs: Any) -> ComparisonResult
func hash(into hasher: inout Hasher)
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.