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
Rust – Mutable and Shared Borrowing
There are two types of borrowing in Rust – mutable and shared borrowing.