Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
struct IgnoreHashable<T>: Hashable {
var wrappedValue: T
init(wrappedValue: T) {
self.wrappedValue = wrappedValue
func hash(into hasher: inout Hasher) {}
static func == (lhs: Self, rhs: Self) -> Bool {
return true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment