Understanding what references are in Rust and how to use them is crucial. A reference is a pointer to a memory location. A location where the data we’re interested in reside. A Rust reference is similar to the traditional pointers
Rust – Mutable and Shared Borrowing
There are two types of borrowing in Rust – mutable and shared borrowing.