Skip to content

Glossary: Swift Basics

Equatable

A standard protocol that makes `==` and `!=` work for a type. For a struct whose properties are all equatable, writing `: Equatable` is enough.

Where the book teaches it

Related terms

ComparableHashableprotocol