Summary

In this chapter, you have learned how the borrow checker works. You now understand the rules that your code must follow to compile, and how little tricks can make your code much faster without having to worry about making the compiler happy.

You also learned about the memory representation of structures and enumerations in Rust and how to make your Rust code compatible with the C/C++.

Finally, you understood how Rust manages shared pointers for complex structures where the Rust borrow checker can make your coding experience much more difficult.

In Chapter 4Lints and Clippy, we will learn about linting and a surprisingly good linting tool called Clippy. With these lints, you will be able to find many of the issues we saw at compile ...

Get Rust High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.