Operator

==(_:_:)

Returns a Boolean value indicating whether two type-erased hashable instances wrap the same type and value.

Declaration

static func == (lhs: AnyHashable, rhs: AnyHashable) -> Bool

Parameters

lhs

A type-erased hashable value.

rhs

Another type-erased hashable value.

Discussion

Two instances of AnyHashable compare as equal if and only if the underlying types have the same conformance to the Equatable protocol and the underlying values compare as equal.

Relationships

From Protocol