This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct CustomHashable<T>: Hashable { | |
public let value: T | |
public typealias HashCalculator = (CustomHashable<T>, inout Hasher) -> Void | |
public typealias EqualityCalculator = (CustomHashable<T>, CustomHashable<T>) -> Bool | |
public typealias CacheTransformedData = (T) -> Any? | |
private let hashCalculator: HashCalculator | |
private let equalityCalculator: EqualityCalculator |