Borrowing (Rust)

Borrowing lets you access a value through a reference (&) without taking ownership of it. The borrow checker enforces that borrows never outlive the data and…