protocol Equatable<RHS = Self>Methods
func equals(_ rhs: RHS) -> Bool
Compares Self with RHS according to the conforming type's equality semantics.
View Source
func equals(_ rhs: RHS) -> Boolfunc notEquals(_ rhs: RHS) -> Bool
Returns whether the two values are not equal.
View Source
func notEquals(_ rhs: RHS) -> Bool {
if self.equals(rhs) {
false
} else {
true
}
}