HashableWitness
public protocol HashableWitness<Element> : EquatableWitness
A type serving as a witness to another type’s conformance to Hashable.
-
The element for which
Selfserves as a witness.Declaration
Swift
associatedtype Element -
Hashes the salient features of
elementby feeding them intohasher.Declaration
Swift
static func hash(_ element: Element, into hasher: inout Hasher)
View on GitHub