I'm C++ programmer. I try to port some C++ program that uses boost::multi_index container to Rust.
https://www.boost.org/libs/multi_index/doc/index.html
The C++ code uses multi_index to erase the element by O(1) complexity from the all indexes by the iterator that is gotten by one index. That is important point.
Is there any good way to do that using Rust?
I couldn't find a container that supports multiple indexes in the standard library.