HashableKeyPathConsumer
public protocol HashableKeyPathConsumer
A protocol that defines a function that can be used to add key paths from the Root
type to Hashable
properties.
-
The type of the object that will be hashed.
Declaration
Swift
associatedtype Root
-
Declaration
Swift
mutating func addCustomEquator<KeyType>(forKeyPath keyPath: KeyPath<Root, KeyType>, equator: @escaping (KeyType, KeyType) -> Bool) where KeyType : Hashable