March 2026
Intermediate
318 pages
7h 52m
English
Now that we've explored the benefits of Rust and gotten a feel for its syntax, it's time to understand how exactly Rust enforces its safety checks. We'll take a deep dive into the compile-time and runtime restrictions Rust places on our programs and talk about how best to structure our code as a result. By the end of this chapter, we'll have an excellent understanding of Rust's safety model and how it helps us write correct programs through the concepts of ownership, borrowing, and lifetimes.
In this chapter, we're going to cover the following main topics:
The Rust examples in this chapter use ...
Read now
Unlock full access