In our project we have two libraries (one is another implementation of hashmap and another is another implementation of an interner). Both declare own Equivalent trait.
Might be useful is there was a crate which simply declares Equivalent, so the same Equivalent implementation can be implemented for various types without depending on specific use case.
IndexMap can extract Equivalent into a separate crate and reexport this trait to keep indexmap backward compatible.
In our project we have two libraries (one is another implementation of hashmap and another is another implementation of an interner). Both declare own
Equivalenttrait.Might be useful is there was a crate which simply declares
Equivalent, so the sameEquivalentimplementation can be implemented for various types without depending on specific use case.IndexMapcan extractEquivalentinto a separate crate and reexport this trait to keepindexmapbackward compatible.