You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem or challenge? Please describe what you are trying to do. Schema currently implements Eq but not Hash. The latter would be useful for the following reasons:
Sometimes it would be helpful if you could stick a Schema into a HashSet/HashMap, e.g. for interning (this is a quite costly way to intern a schema and usually you should use a cheap proxy key, but sometimes this is also the only easy way to intern a schema)
Implement Hash for a struct that contains a Schema for whatever reason.
Describe the solution you'd like
Implement Hash for Schema.
Describe alternatives you've considered
Not implementing it.
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Schema
currently implementsEq
but notHash
. The latter would be useful for the following reasons:Schema
into aHashSet
/HashMap
, e.g. for interning (this is a quite costly way to intern a schema and usually you should use a cheap proxy key, but sometimes this is also the only easy way to intern a schema)Hash
for a struct that contains aSchema
for whatever reason.Describe the solution you'd like
Implement
Hash
forSchema
.Describe alternatives you've considered
Not implementing it.
Additional context
The text was updated successfully, but these errors were encountered: