Skip to content

Glossary: Swift Beyond the Basics

Equatable

Also written: ==

A standard protocol for types whose values can be compared with `==`. Comparable includes it, and a type with Equatable parts can be made Equatable, as `SyncReport` is so tests can compare reports.

Where the book teaches it

Related terms

Comparableconditional conformance