Instance Methodswift 6.0.3FoundationInternationalization
hash(into:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
func hash(into hasher: inout Hasher)
func hash(into hasher: inout Hasher)
s30FoundationInternationalization14SortDescriptorV4hash4intoys6HasherVz_tF
What are these?8I5GK
import FoundationInternationalization
struct SortDescriptor<Compared>
A serializable description of how to sort numeric and String
types.
@frozen struct Hasher
The universal hash function used by Set
and Dictionary
.
init(_ keyPath: any KeyPath<Compared, String> & Sendable, comparator: String.StandardComparator)
Temporarily available as a replacement for init(_:comparator:)
with a default argument.
init(_ keyPath: any KeyPath<Compared, String?> & Sendable, comparator: String.StandardComparator)
Temporarily available as a replacement for init(_:comparator:)
with a default argument.
init(_ keyPath: any KeyPath<Compared, String> & Sendable, comparator: String.StandardComparator, order: SortOrder)
Temporarily available as a replacement for init(_:comparator:)
with a default argument.
init(_ keyPath: any KeyPath<Compared, String?> & Sendable, comparator: String.StandardComparator, order: SortOrder)
Temporarily available as a replacement for init(_:comparator:)
with a default argument.
init<Value>(_ keyPath: any KeyPath<Compared, Value> & Sendable, order: SortOrder = .forward) where Value : Comparable
init<Value>(_ keyPath: any KeyPath<Compared, Value?> & Sendable, order: SortOrder = .forward) where Value : Comparable
init(from decoder: any Decoder) throws
var keyPath: PartialKeyPath<Compared>? { get }
The key path to the field for comparison.
var order: SortOrder
Sort order.
var stringComparator: String.StandardComparator? { get }
A String.StandardComparator
value.
func compare(_ lhs: Compared, _ rhs: Compared) -> ComparisonResult