Learning Rust
Intro:
Rust is a systems programming language that allows for building applications that are performant and efficient during runtime. Rust programs are memory safe and their performance metrics are close to that of C language.
Installation:
-
Windows:
choco install rustc -
Linux:
curl ...
📌Be sure to check the Rust docs here
Creating a New Project:
Ownership

Three rules of ownership:

Importance of ownership in Rust
Ownership prrevents memory safety issues:
-
Dangling pointers
-
Double-free - trying to free memory that has already been freed
-
Memory leaks - not freeing memory that should have been freed
Borrowing

Rules of References:

