Many C/C++ devs coming to Rust, attempt create a linked list as one of their first exercises in Rust. However, linked lists are rather unidiomatic in Rust and typically using Vec or VecDeque is a more idiomatic (and much more performant) way to have a collection of items. Nevertheless, linked lists are an interesting exercise in understanding Rust’s borrower checker. In this stream, we implement such a linked list!
#rust #c #cplusplus