Search code examples
vectorstackdynamic-arraysrust

What's the right way to make a stack (or other dynamically resizable vector-like thing) in Rust?


Google turns up many links on old methods that have now been removed from the language, but I can't find a reference on what to do for Rust 0.6.

I've just implemented a linked list, which I could easily repurpose into a stack, but I'd rather use some well-tested, robust, existing data structure from the standard library.


Solution

  • I would try, in order :

    You can learn more about the containers on the wiki.