
Intermediate Rust Techniques: Mastering Lifetimes, Traits, and Generic Programming Patterns
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Stop Fighting the Compiler. Start Designing with It.
If you can write working Rust code but struggle with scalable, idiomatic systems design, this book is the bridge you need. Intermediate Rust Techniques moves you from functional competence to production-grade mastery, built around the three pillars of expert Rust: lifetimes, traits, and generics.
What You Will Learn
This book reframes the Rust compiler from an adversary into a collaborator. You will develop a precise mental model of how the borrow checker tracks paths, aliasing, and mutation. You will master the complete trait system, including dynamic dispatch, blanket implementations, and the orphan rules. You will wield generic programming, from higher-ranked trait bounds and phantom types to const generics and compile-time state machines, to build zero-cost abstractions that are architecturally impossible to misuse.
Topics Covered
- Ownership at depth: non-lexical lifetimes, reborrowing, and interior mutability
- Trait objects, associated types, and advanced trait composition
- Generic API design, where clauses, and PhantomData for type-safe abstractions
- Type-level programming and compile-time protocol enforcement
- Production error-handling architecture with typed and opaque errors
- Fearless concurrency, async/await, and the Future trait internals
- Performance engineering: SIMD, cache-friendly data layout, and arena allocation
- Principled unsafe Rust and the Foreign Function Interface
Who This Book Is For
Written for developers with a working knowledge of Rust fundamentals who are ready to build production systems, design robust libraries, and write high-performance applications that are correct by construction.
By the final chapter, you will not just write Rust that compiles. You will write Rust that endures.
More details
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.