3 ms·
Not sure why you'd need to use something from crates.io; there's a doubly-linked list in the standard library[1]. That being said, the standard library document
by saghm 9y ago
Not sure why you'd need to use something from crates.io; there's a doubly-linked list in the standard library[1]. That being said, the standard library documentation itself strongly suggests that you use a VecDeque in most cases[2].
[1]: https://doc.rust-lang.org/std/collections/struct.LinkedList.html https://doc.rust-lang.org/std/collections/struct.LinkedList....
[2]: https://doc.rust-lang.org/std/collections/index.html#use-a-linkedlist-when https://doc.rust-lang.org/std/collections/index.html#use-a-l...