Intermediate Rust Techniques: Mastering Lifetimes, Traits, and Generic Programming Patterns

Cover of Intermediate Rust Techniques: Mastering Lifetimes, Traits, and Generic Programming Patterns

EPUB · English

Price and availability

EPUB eBookUS store

$8.99

Sign in to buy

You’ll review your order and final price before payment.

Download from your library after delivery. Protected eBooks need a compatible reading app.

For personal use under the eBook licence.

Territorial availability

Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa

Publisher rights cover these stores: US, UK, Canada, EU, Australia. Checkout availability is shown above.

Format
EPUB
DRM
Not stated by the publisher
Language
English
Publisher
Distributed via Draft2Digital
Published
15 April 2026
ISBN
9798235596924
Subjects
Computer programming / software development, Programming & scripting languages: general, Software Engineering, Computer programming / software engineering, Programming and scripting languages: general, Software Engineering

About this book

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 LearnThis 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 CoveredOwnership at depth: non-lexical lifetimes, reborrowing, and interior mutabilityTrait objects, associated types, and advanced trait compositionGeneric API design, where clauses, and PhantomData for type-safe abstractionsType-level programming and compile-time protocol enforcementProduction error-handling architecture with typed and opaque errorsFearless concurrency, async/await, and the Future trait internalsPerformance engineering: SIMD, cache-friendly data layout, and arena allocationPrincipled unsafe Rust and the Foreign Function InterfaceWho This Book Is ForWritten 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.

Bibliographic data © Gardners Books Ltd.