Create a linked list in Rust: The RC smart pointer

RMAG news

Hey guys. In this tutorial, I implement a linked list in Rust utilizing the RC smart pointer. You will learn about the linked list data structure as well as the Box and RC smart pointers in Rust.

There are many other things to learn here, such as the Iterator trait, setting up a test in Rust, and much more.

Here are the key highlights of the video

Linked list explained
The Box smart pointer
Getting the head of a linked list list
Pushing an element to a linked list list
The RC smart pointer
Popping an element from a linked list list
Iterating through the elements in a linked list list
Verifying if an element is contained in a linked list list
Inserting an element in a linked list
Removing an element from a linked list
Reversing a linked list

You can code along with me while watching the video and remember to give your feedback in the comments. Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *