Part 1 Building blocks

We’ll begin this book by examining some of the basic building blocks of Rust design patterns. These building blocks are essential to understanding the complex patterns we’ll cover later in the book, and they’ll help you write more idiomatic Rust code. Some of these building blocks are specific to Rust; others are more general programming concepts that are particularly important in Rust.

These building blocks are effectively the vocabulary of Idiomatic Rust: Code like a Rustacean and constitute the core features of the Rust language. We can think of them as the atoms of a molecule, which we’ll combine in various ways to create complex substances (or patterns). Those patterns can be combined and architected to create ...

Get Idiomatic Rust 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.