March 2026
Intermediate
318 pages
7h 52m
English
Now that we have an idea of the benefits Rust can give us, it's time to start examining the syntax. In this chapter, we'll illustrate Rust's basic syntactical concepts in the context of the corresponding C++ code. In the following code examples, we'll first see the Rust syntax for each concept and, whenever possible, follow it with the closest equivalent we can create in C++. By seeing the two languages together, we'll have a much easier time understanding the similarities and differences between them.
We will tackle the topics roughly in order of similarity to C++, from most to least similar.
In this chapter, we're going to cover the following main topics:
Read now
Unlock full access