Rust Design Patterns you own this product

Brenden Matthews
  • MEAP began June 2023
  • Publication in May 2024 (estimated)
  • ISBN 9781633437463
  • 250 pages (estimated)
  • printed in black & white

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Look inside
Build stable, maintainable Rust applications by applying these important code and architectural design patterns.

In Rust Design Patterns you’ll learn how to apply important design patterns including:

  • Fluent interfaces for creating delightful APIs
  • The Builder pattern to encapsulate data and perform initialization
  • Immutable data structures that help you avoid hard-to-debug data race conditions
  • Functional programming patterns
  • Anti-patterns and what not to do in Rust

Rust Design Patterns introduces reusable best practices that will help you solve common programming problems and ensure your code is easy for others to understand. Learn when to use each design pattern, as well as when to break it. This practical guide catalogs, documents, and describes both how classic design patterns work with Rust, and the new Rust-specific patterns that will help you master the language.

about the book

Rust Design Patterns presents dozens of established programming and architecture solutions that take advantage of Rust’s unique language design. You’ll start with the basics of generics and traits, using them as a foundation to rapidly progress to metaprogramming, building your own libraries, and even advanced patterns like fluent interfaces and making immutable structures.

Throughout this unique book, you’ll find useful code samples that are easy to adapt and reuse for your own projects. Hone your Rust skills with functional programming techniques, and explore examples of common anti-patterns so you know mistakes to avoid. You’ll soon have an in-depth understanding of when and how to apply each design pattern, and even create your very own!

about the reader

For Rust programmers of all skill levels. Beginners will find studying design patterns a great way to evolve their skills beyond the basics. Experienced Rustceans will benefit from tips and tricks that help speed up delivery and make full use of Rust’s lesser-known features.

about the author

Brenden Matthews is a software engineer, entrepreneur, and prolific open source contributor. He has been using Rust since the early days of the language, and has contributed to a number of Rust tools and open source projects, as well as using Rust professionally. He’s the author of Conky, a popular system monitor, a member of the Apache Software Foundation, and has also written Code Like a Pro in Rust.

choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Rust Design Patterns ebook for free

choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Rust Design Patterns ebook for free