
Idiomatic Rust: Code like a Rustacean
by: Brenden Matthews (Author)
Publisher: Manning
Publication Date: 2024/10/8
Language: English
Print Length: 256 pages
ISBN-10: 1633437469
ISBN-13: 9781633437463
Book Description
Tips, tricks, design pattes, 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 pattes for Rust software with detailed explanations, and code samples that encourage you to get stuck in. In Idiomatic Rust you’ll lea how to apply important design pattes including: • Fluent interfaces for creating delightful APIs • The Builder patte to encapsulate data and perform initialization • Immutable data structures that help you avoid hard-to-debug data race conditions • Functional programming pattes • Anti-pattes and what not to do in Rust Idiomatic Rust catalogs, documents, and describes both how classic design pattes work with Rust, and the new Rust-specific pattes that will help you master the language. Each patte or best practice helps solve common programming problems and ensure your code is easy for others to understand. You’ll lea when to use each patte—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 pattes 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 pattes 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 lea how to write efficient, idiomatic Rust code that’s easy to maintain and evolve as you lea how the language works under the hood. What’s inside • Creating delightful APIs • Applying Builder and other classic design pattes • Functional programming pattes • Rust anti-pattes 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 pattes 2 Rust’s basic building blocks 3 Code flow PART 2 4 Introductory pattes 5 Design pattes: 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 Antipattes A Installing Rust
About the Author
Tips, tricks, design pattes, 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 pattes for Rust software with detailed explanations, and code samples that encourage you to get stuck in. In Idiomatic Rust you’ll lea how to apply important design pattes including: • Fluent interfaces for creating delightful APIs • The Builder patte to encapsulate data and perform initialization • Immutable data structures that help you avoid hard-to-debug data race conditions • Functional programming pattes • Anti-pattes and what not to do in Rust Idiomatic Rust catalogs, documents, and describes both how classic design pattes work with Rust, and the new Rust-specific pattes that will help you master the language. Each patte or best practice helps solve common programming problems and ensure your code is easy for others to understand. You’ll lea when to use each patte—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 pattes 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 pattes 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 lea how to write efficient, idiomatic Rust code that’s easy to maintain and evolve as you lea how the language works under the hood. What’s inside • Creating delightful APIs • Applying Builder and other classic design pattes • Functional programming pattes • Rust anti-pattes 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 pattes 2 Rust’s basic building blocks 3 Code flow PART 2 4 Introductory pattes 5 Design pattes: 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 Antipattes A Installing Rust
Wow! eBook

