Added conformance to Hashable

This commit is contained in:
Zach Eriksen 2021-06-24 19:48:01 -05:00
parent 1db3186ebc
commit effe049394
1 changed files with 10 additions and 0 deletions

View File

@ -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)
}
}