Equatable

E427894

Equatable is a fundamental Swift protocol that enables value comparison by requiring types to define equality operations.

All labels observed (1)

Label Occurrences
Equatable canonical 1

How this entity was disambiguated

Statements (41)

Predicate Object
instanceOf Swift protocol
allows use in != expressions
use in == expressions
appliesTo class types
enum types
struct types
availability available on all Swift-supported platforms
category protocols for basic operations
comparisonSemantics should represent value equality
conformance can be synthesized by the Swift compiler
conformanceStyle explicit conformance declaration required
conformanceType value semantics
definedIn Swift Standard Library NERFINISHED
designGuideline equality must be reflexive symmetric and transitive
documentationURL https://developer.apple.com/documentation/swift/equatable
enables comparison of instances for equality
introducedIn early versions of Swift (pre-1.0 era)
is fundamental protocol in Swift
isRequirementFor Dictionary key types (via Hashable)
Hashable
Set element types
kind protocol with associated static operators
module Swift NERFINISHED
operatorType infix equality operators
primaryPurpose enable value comparison
programmingLanguage Swift NERFINISHED
relationshipWith Hashable
requires equality operations
requiresMethod != operator
== operator
supports generic constraints
synthesizedWhen all stored properties are Equatable
usedBy Array.contains(_:) method
Array.firstIndex(of:) method NERFINISHED
Collection.contains(_:) method
XCTest assertions involving equality
standard library collection algorithms
usedFor collection operations
comparing two values for equality
conditional logic
testing and assertions

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.