indexmap-rs/indexmap

MutableKeys for IndexSet

Morganamilo opened this issue · 2 comments

Would it be possible to add a way to mutate keys in Set like you can Map?

I suppose we could, but can you say more about your use-case for this?

Also, you can approximate this by using IndexMap<T, ()> with MutableKeys instead of IndexSet.

I have a struct that I'm storing in a set and only hashing the name. I then want to edit some of the fields along the life of the program.