20 A tour of the standard library

This chapter covers

  • A more in-depth look at familiar types
  • Associated constants
  • A summary of the three associated items in Rust
  • Recently added functions such as from_fn and then_some
  • New types, such as OsString and CString

Good work! You’re almost through the book—there are only five chapters left. For this chapter and the next, we are going to sit back and relax and go on a short tour of the standard library, including further details on some of the types we already know. You will certainly end up encountering these modules and methods as you continue to use Rust, so we might as well learn them now so that they are already familiar to you. Nothing in this chapter will be particularly difficult to learn, and ...

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.