13 Box and Rust documentation
This chapter covers
- Reading Rust documentation
- Attributes, which are small bits of extra information
- Box, a smart pointer that gives a lot of extra flexibility
This chapter is a bit of a break after the last two, with Box
being the only really new concept. But Box
is one of the most important types in Rust because it makes a lot of things possible that otherwise wouldn’t be, especially when working with traits. You’ll be glad to know it! To start off the chapter, though, we will relax a bit and learn how to read documentation, which in Rust is always generated in the same way. This is nice because once you get used to reading documentation in Rust, you will be able to understand the documentation for anyone else’s ...
Get Learn Rust in a Month of Lunches 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.