Google 在 old methods 上找到了许多链接 have now been removed from the language ,但我找不到有关如何处理 Rust 0.6 的引用。

我刚刚实现了一个链表,我可以轻松地将其重新用于堆栈,但我更愿意使用标准库中一些经过良好测试的、健壮的、现有的数据结构。

最佳答案

我会尝试,按顺序:

  • deque
  • listdlist
  • vec
  • mutable owned vector

  • 你可以 learn more about the containers on the wiki

    关于vector - 在 Rust 中制作堆栈(或其他可动态调整大小的类似矢量的东西)的正确方法是什么?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15886661/

    10-13 09:07