Supercharge your code with macros, the real power tools of the Rust programming language!
Macros are instructions to generate new Rust code at compile-time, saving you hours of tedious code writing. The top Rust developers have built macros into everything from the standard library to crates. Now you can learn how these amazing power tools will help you push Rust to its full potential. This hands-on guide takes you from the absolute basics to advanced macro techniques.
Inside Write Powerful Rust Macros you'll discover:
Die Inhaltsangabe kann sich auf eine andere Ausgabe dieses Titels beziehen.
Sam Van Overmeire is a software developer with a background in history and archaeology. He is the author of multiple books, scientific articles and blog posts.
From the Back Cover:
Write Powerful Rust Macros is a comprehensive guide to creating macros in Rust. You'll start your journey with declarative macros, then quickly move on to the powerful procedural macros to build your own domain-specific language. Learn how to create public fields, work with custom attributes, integrate your macros with other crates, write effective tests to ensure your macros are reliable and bug-free, and even share your macros with other developers.
About the reader:
For intermediate Rust programmers.
„Über diesen Titel“ kann sich auf eine andere Ausgabe dieses Titels beziehen.
Anbieter: PBShop.store UK, Fairford, GLOS, Vereinigtes Königreich
HRD. Zustand: New. New Book. Shipped from UK. Established seller since 2000. Artikel-Nr. PB-9781633437494
Anzahl: 5 verfügbar
Anbieter: Le Monde de Kamélia, Bruxelles, Belgien
Zustand: as new. Livraison rapide, bien emballé, service client soigné.Pour tout renseignement complémentaire, n'hésitez pas à nous contacter. Artikel-Nr. 5E7C9E7139C9
Anzahl: 1 verfügbar
Anbieter: WorldofBooks, Goring-By-Sea, WS, Vereinigtes Königreich
Paperback. Zustand: Very Good. The book has been read, but is in excellent condition. Pages are intact and not marred by notes or highlighting. The spine remains undamaged. Artikel-Nr. GOR014047189
Anzahl: 1 verfügbar
Anbieter: Romtrade Corp., STERLING HEIGHTS, MI, USA
Zustand: New. This is a Brand-new US Edition. This Item may be shipped from US or any other country as we have multiple locations worldwide. Artikel-Nr. ABBB-24087
Anbieter: Majestic Books, Hounslow, Vereinigtes Königreich
Zustand: New. Artikel-Nr. 398223665
Anzahl: 2 verfügbar
Anbieter: Ria Christie Collections, Uxbridge, Vereinigtes Königreich
Zustand: New. In English. Artikel-Nr. ria9781633437494_new
Anzahl: 2 verfügbar
Anbieter: Revaluation Books, Exeter, Vereinigtes Königreich
Paperback. Zustand: Brand New. 298 pages. 9.25x7.50x0.75 inches. In Stock. Artikel-Nr. x-1633437493
Anzahl: 1 verfügbar
Anbieter: Kennys Bookstore, Olney, MD, USA
Zustand: New. 2024. 1st Edition. paperback. . . . . . Books ship from the US and Ireland. Artikel-Nr. V9781633437494
Anzahl: 10 verfügbar
Anbieter: Speedyhen, Hertfordshire, Vereinigtes Königreich
Zustand: NEW. Artikel-Nr. NW9781633437494
Anzahl: 2 verfügbar
Anbieter: AHA-BUCH GmbH, Einbeck, Deutschland
Buch. Zustand: Neu. Neuware - An example-driven, step-by-step guide to success with Rust macros.In Write Powerful Rust Macros you'll learn how to use these amazing metaprogramming tools to push Rust to its full potential. This hands-on guide takes you from the absolute basics to advanced macro techniques, exploring Rust macros through interesting and engaging examples.Inside Write Powerful Rust Macros you'll discover: - Writing declarative macros - Procedural macros - Reading and debugging macro code - Improving the type system with newtypes and zero-sized types - How common Rust libraries use macros Write Powerful Rust Macros teaches you how to write, test, debug, and publish macros for Rust. It's perfect for Rust practitioners who want to master this powerful development technique. Build your knowledge chapter-by-chapter. You'll start with declarative macros before diving into the real power: procedural macros that can generate code, augment data structures, and even create domain-specific languages.About the technologyMacros are one of Rust's most important and powerful tools. Although notoriously challenging, this metaprogramming technique has a big payoff. Using macros to generate new Rust code at compile-time can save you hours of tedious coding with negligible runtime performance impact. This book shows you exactly how to master this Rust superpower.About the bookWrite Powerful Rust Macros opens up the world of macros to intermediate Rust programmers. You'll start with declarative macros to get the basics under your belt. Then, you'll advance to procedural macros as you automatically generate a builder, learn to create your own domain-specific languages, and more. As you go, you'll develop practical skills like testing macros, integrating macros with crates, and even sharing your macros with other developers.What's inside - How Rust libraries use macros - Reading and debugging macro code - newtypes and the type state pattern About the readerFor intermediate Rust programmers.About the authorSam Van Overmeire is an experienced Rust developer and the author of multiple books, scientific articles and blog posts.The technical editor on this book was Andrew Lilley Brinker.Table of contents1 Going meta2 Declarative macros3 A "Hello, World" procedural macro4 Making fields public with attribute macros5 Hiding information and creating mini-DSLs with function-like macros6 Testing a builder macro7 From panic to result: Error handling8 Builder with attributes9 Writing an infrastructure DSL10 Macros and the outside world. Artikel-Nr. 9781633437494
Anzahl: 1 verfügbar