A Quick Introduction to Rust
Rust is growing in popularity, but it has a steep learning curve. By covering the basic rules around Rust, as well as learning how to manipulate a range of data types and variables, we will be able to write simple programs in the same fashion as dynamically-typed languages using a similar number of lines of code.
The goal of this chapter is to cover the main differences between Rust and generic dynamic languages and to provide you with a quick understanding of how to utilize Rust.
In this chapter, we will cover the following topics:
- Why is Rust revolutionary?
- Reviewing data types and variables in Rust
- Controlling variable ownership
- Building structs
- Metaprogramming with macros
Once we have covered the main concepts in this chapter, you will be able to code basic programs in Rust that will run. You will also be able to debug your programs and understand the error messages that are thrown by the Rust compiler. As a result...