Hi, I’m trying to write a map-like collection but that allows the item to be looked up by two keys, name or uuid. Internally using a map from name->uuid and then one from uuid->T.
This is mostly working except for implementing iter_mut. Big lifetime issues that I haven’t been able to figure out even after reading the Advanced Lifetimes page.
the code in question is here at line 78. Iter works, but IterMut needs to call get_mut() and then everything blows up Help?
Also, if a crate already exists for this, I’d be happy to use that but couldn’t find one.
Thanks! – Andy