Idiomatic Rust: Code like a Rustacean source code This repository contains the source code for Idiomatic Rust: Code like a Rustacean. Table of contents Chapter 2 2.1 generic-basics 2.2 rectangle-square describe-type pumpkin trait-objects Chapter 3 3.1 basic-pattern-matching 3.2 closures functional-tour linkedlist-iterator Chapter 4 4.1 raii 4.2 pass-by-value pass-by-reference 4.3 pizza 4.4 pizza 4.5 read-nth-line-from-file 4.6 global-vars Chapter 5 5.1 macros 5.2 optional-arguments 5.3 builder 5.4 fluent-builder 5.5 observer callbacks 5.6 command 5.7 newtypes Chapter 6 6.2 linkedlist Chapter 7 7.1 buffer 7.2 wrapped-vec 7.3 extension-traits 7.4 blanket-trait 7.5 marker-traits supertraits 7.6 struct-tagging 7.7 reference-objects Chapter 8 8.1 session-state-machine 8.2 coroutines 8.3 hello-world print-name 8.4 mylib Chapter 9 9.5 immutability-review 9.7 cow 9.8 with-im with-rpds Chapter 10 10.2 unsafe-usage forbid-unsafe 10.4 vec-benchmark basic-bench 10.6 misusing-deref polymorphism-emulation-trait-object polymorphism-emulation-deref