EquatableByKeyPath
public protocol EquatableByKeyPath : Equatable
A protocol that defines a single function that can be used to synthesise Equatable conformance.
-
Add key paths to
consumerthat will be used forEquatableconformance.Declaration
Swift
static func addEquatableKeyPaths<Consumer>(to consumer: inout Consumer) where Self == Consumer.Root, Consumer : EquatableKeyPathConsumerParameters
consumerThe consumer to add the key paths to.
-
==(_:Extension method_: ) Declaration
Swift
public static func == (lhs: Self, rhs: Self) -> Bool
View on GitHub
EquatableByKeyPath Protocol Reference