derive Hash for most pub types that also derive PartialEq#852
derive Hash for most pub types that also derive PartialEq#852djc merged 1 commit intochronotope:mainfrom vectordotdev:derive-hash
Hash for most pub types that also derive PartialEq#852Conversation
|
Probably want to backport this to 0.4.x, @bruceg do you want to submit that? |
|
A good example of how it can be used would be useful for documentation, ie feeding it in to A bigger issue we had with this type was ownership. When parsing a string, we get items that reference the same lifetime as the string. When we later want to collect those items into a vec and store it for repeated use, we had to convert those into Funny you should mention 0.4.x. We use that for our releases, so we already did backport the change there. I will submit that after the weekend. |
We needed to store
Itemalongside other data in a hash set, which requires all of the contained data be hashable. While I was adding the derive for that type, I looked for other pub types that could use it.