Protocol std::cmp::Equatable

protocol Equatable<Self> { ... }

Types that can be compared for equality.

Types that implement this protocol can be compared for equality using the == and != operators. Many built-in types implement this protocol, such as primitive types, slices, Option, etc.

Method equals must be implemented, other methods can be mixed in.


Required methods

Provided methods