Structureswift 6.0.1FoundationEssentials
OptionalComparator
struct OptionalComparator<Base> where Base : SortComparator
struct OptionalComparator<Base> where Base : SortComparator
import FoundationEssentials
@preconcurrency protocol SortComparator<Compared> : Hashable, Sendable
A comparison algorithm for a given type.
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.
init(_ base: Base)
var order: SortOrder { get set }
func compare(_ lhs: Base.Compared?, _ rhs: Base.Compared?) -> ComparisonResult
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
protocol Sendable