Protocol std::prelude::Result::Equatable

Re-export from 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.

Equatable can be automatically generated for by using DefaultEquatable mixin, but if custom equality comparison is needed, the protocol can be implemented manually.

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

Example

Required methods

Provided methods