
EPUB · English
Idiomatic Rust
Code like a Rustacean
Price and availability
$67.99
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
Stores: US, UK, Canada, EU, Australia.
Sign in to buyThe price is re-checked by the server before payment.
For personal use under the eBook licence.
- Format
- EPUB
- DRM
- Not stated by the publisher
- Language
- English
- Publisher
- Manning
- Published
- 24 September 2024
- ISBN
- 9781638355724
- Subjects
- Programming & scripting languages: general, Client-Server networking, Programming and scripting languages: general, Client–Server networking
About this book
Tips, tricks, design patterns, and secret features of Rust that will help you build stable and maintainable applications.Whether youre 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 youll 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 RustIdiomatic 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. Youll learn when to use each patternand when to break it! Youll soon be producing higher-quality Rust code and higher-quality Rust software.About the technologyAfter youre comfortable with Rusts syntax and its uniquely-powerful compiler, theres 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 bookIdiomatic Rust introduces the coding and design patterns youll need to take advantage of Rusts unique language design. This books clear explanations and reusable code examples help you explore metaprogramming, build your own libraries, create fluent interfaces, and more. Along the way, youll learn how to write efficient, idiomatic Rust code thats easy to maintain and evolve as you learn how the language works under the hood.What's insideCreating delightful APIsApplying Builder and other classic design patternsFunctional programming patternsRust anti-patternsAbout the readerFor intermediate Rust programmers.About the authorBrenden 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 ContentsPART 11 Rust-y patterns2 Rusts basic building blocks3 Code flowPART 24 Introductory patterns5 Design patterns: Beyond the basics6 Designing a libraryPART 37 Using traits, generics, and structs for specialized tasks8 State machines, coroutines, macros, and preludesPART 49 Immutability10 AntipatternsA Installing Rust
Bibliographic data © Gardners Books Ltd.