Tips, tricks, design patterns, and secret features of Rust that will help you build stable and maintainable applications.
Whether you’re a Rust beginner or a pro, Idiomatic Rust will teach you to be a better Rust programmer. It introduces essential design patterns for Rust software with detailed explanations, and code samples that encourage you to get stuck in.
In Idiomatic Rust 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
Idiomatic Rust 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. Each pattern or best practice helps solve common programming problems and ensure your code is easy for others to understand. You’ll learn when to use each pattern—and when to break it! You’ll soon be producing higher-quality Rust code and higher-quality Rust software.
Purchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications
About the technology
After you’re comfortable with Rust’s syntax and its uniquely-powerful compiler, there’s a whole new dimension to explore as you put it to use in real projects. How do you apply standard design patterns in Rust applications? Where and why should you use IntoIterator? Why do Rustaceans love the PhantomData type? This book answers these questions and many, many more.
About the book
Idiomatic Rust introduces the coding and design patterns you’ll need to take advantage of Rust’s unique language design. This book’s clear explanations and reusable code examples help you explore metaprogramming, build your own libraries, create fluent interfaces, and more. Along the way, you’ll learn how to write efficient, idiomatic Rust code that’s easy to maintain and evolve as you learn how the language works under the hood.
What's inside
• Creating delightful APIs
• Applying Builder and other classic design patterns
• Functional programming patterns
• Rust anti-patterns
About the reader
For intermediate Rust programmers.
About the author
Brenden Matthews is a member of the Apache Software Foundation, creator of the system monitor Conky, and author of Code Like a Pro in Rust.
The technical editor on this book was Alain M Couniot.
Table of Contents
PART 1
1 Rust-y patterns
2 Rust’s basic building blocks
3 Code flow
PART 2
4 Introductory patterns
5 Design patterns: Beyond the basics
6 Designing a library
PART 3
7 Using traits, generics, and structs for specialized tasks
8 State machines, coroutines, macros, and preludes
PART 4
9 Immutability
10 Antipatterns
A Installing Rust
Die Inhaltsangabe kann sich auf eine andere Ausgabe dieses Titels beziehen.
Brenden Matthews is a software engineer, entrepreneur, and a 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 OS projects.
From the back cover
Rust Advanced Techniques 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
„Über diesen Titel“ kann sich auf eine andere Ausgabe dieses Titels beziehen.
Anbieter: GreatBookPrices, Columbia, MD, USA
Zustand: As New. Unread book in perfect condition. Bestandsnummer des Verkäufers 47742954
Anzahl: Mehr als 20 verfügbar
Anbieter: INDOO, Avenel, NJ, USA
Zustand: As New. Unread copy in mint condition. Bestandsnummer des Verkäufers SS9781633437463
Anzahl: Mehr als 20 verfügbar
Anbieter: GreatBookPrices, Columbia, MD, USA
Zustand: New. Bestandsnummer des Verkäufers 47742954-n
Anzahl: Mehr als 20 verfügbar
Anbieter: INDOO, Avenel, NJ, USA
Zustand: New. Brand New. Bestandsnummer des Verkäufers 9781633437463
Anzahl: Mehr als 20 verfügbar
Anbieter: PBShop.store US, Wood Dale, IL, USA
HRD. Zustand: New. New Book. Shipped from UK. Established seller since 2000. Bestandsnummer des Verkäufers PB-9781633437463
Anbieter: Rarewaves.com USA, London, LONDO, Vereinigtes Königreich
Hardback. Zustand: New. Build stable, maintainable Rust applications by applying these important code and architectural design patterns.In Rust Advanced Techniques you'll learn how to apply important design patterns including: Fluent interfaces for creating delightful APIsThe Builder pattern to encapsulate data and perform initializationImmutable data structures that help you avoid hard-to-debug data race conditionsFunctional programming patternsAnti-patterns and what not to do in Rust Rust Advanced Techniques 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. Bestandsnummer des Verkäufers LU-9781633437463
Anzahl: 1 verfügbar
Anbieter: PBShop.store UK, Fairford, GLOS, Vereinigtes Königreich
HRD. Zustand: New. New Book. Shipped from UK. Established seller since 2000. Bestandsnummer des Verkäufers PB-9781633437463
Anzahl: 15 verfügbar
Anbieter: BargainBookStores, Grand Rapids, MI, USA
Paperback or Softback. Zustand: New. Idiomatic Rust: Code Like a Rustacean. Book. Bestandsnummer des Verkäufers BBS-9781633437463
Anbieter: Chiron Media, Wallingford, Vereinigtes Königreich
paperback. Zustand: New. Bestandsnummer des Verkäufers 6666-CBL-9781633437463
Anzahl: 1 verfügbar
Anbieter: GreatBookPricesUK, Woodford Green, Vereinigtes Königreich
Zustand: New. Bestandsnummer des Verkäufers 47742954-n
Anzahl: Mehr als 20 verfügbar