Added conformance to Hashable
This commit is contained in:
parent
1db3186ebc
commit
effe049394
|
@ -257,3 +257,13 @@ extension Object: CustomStringConvertible {
|
|||
"""
|
||||
}
|
||||
}
|
||||
|
||||
extension Object: Hashable {
|
||||
public static func == (lhs: Object, rhs: Object) -> Bool {
|
||||
lhs.description == rhs.description
|
||||
}
|
||||
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
hasher.combine(description)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue