Overview
Time to pick up another language! Rust is a systems programming language that is known for its safety and performance. It is designed to be a safe and practical language, supporting functional and imperative-procedural paradigms. Rust is a statically typed language that is compiled directly to machine code, and it is known for novel features like ownership and borrowing, which help prevent common programming errors at compile time, without needing a garbage collector.
Rust has been the most admired programming language in the Stack Overflow Developer Survey for quite some time, and it is increasingly used in the industry.
The structure of this part is as follows:
-
Tooling and Rust Basics links you to the core tools for Rust, and introduces the basics of the Rust language including variables, functions, and basic data types.
-
Ownership and Borrowing goes into the unique ownership system of Rust, which is designed to help prevent common programming errors at compile time. It also covers borrowing, which allows you to pass references to data without transferring ownership.
-
Control Flow takes a small breather from ownership and borrowing, and goes into basic control flow constructs in Rust, including conditional expressions, pattern matching, and loops.
-
Errors, Option, and Result shows how errors are handled in Rust using Option and Result types.
-
Collections and Iteration introduces vectors and hashmaps from Rust, and shows how to iterate over them.
-
Closures and Iterator Methods teaches what closures are and how to use them when iterating over collections. It also covers a handful of iterator methods available in Rust.
-
Structs, Traits, Enums, and Generics showcase how to define custom data types in Rust, providing more struture to programs.
-
Strings and State-Based Parsing gets us back to our parsing journey, this time with state-based parsing, which is a common technique used in parsing.
Finally, at the end, the chapter Recap and Feedback provides a summary of the part and asks for feedback on the materials.