EquatableByKeyPath
public protocol EquatableByKeyPath : Equatable
A protocol that defines a single function that can be used to synthesise Equatable
conformance.
-
Add key paths to
consumer
that will be used forEquatable
conformance.Declaration
Swift
static func addEquatableKeyPaths<Consumer>(to consumer: inout Consumer) where Self == Consumer.Root, Consumer : EquatableKeyPathConsumer
Parameters
consumer
The consumer to add the key paths to.
-
==(_:
Extension method_: ) Declaration
Swift
public static func == (lhs: Self, rhs: Self) -> Bool