- Softcover
- Used

Seller: Le Monde de Kamélia, Bruxelles, BelgiumLe Monde de Kamélia
AbeBooks seller since October 13, 2020
Condition: Used - As new
US$ 44.07
Quantity: 1 available
Add to basketItem description from seller
Livraison rapide, bien emballé, service client soigné.Pour tout renseignement complémentaire, n'hésitez pas à nous contacter.
Seller Inventory # 5E7C9E7139C9
- Title
- Write Powerful Rust Macros
- Author
- Van Overmeire, Sam
- Publisher
- Manning
- Publication year
- 2024
- Condition
- as new
- Binding
- Soft cover
- Language
- English
- ISBN 10
- 1633437493
- ISBN 13
- 9781633437494
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 technology
Macros 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 book
Write 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 reader
For intermediate Rust programmers.
About the author
Sam 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 contents
1 Going meta
2 Declarative macros
3 A “Hello, World” procedural macro
4 Making fields public with attribute macros
5 Hiding information and creating mini-DSLs with function-like macros
6 Testing a builder macro
7 From panic to result: Error handling
8 Builder with attributes
9 Writing an infrastructure DSL
10 Macros and the outside world
"Synopsis" may belong to another edition of this title.
About the Author
"About the title" may belong to another edition of this title.
Le Monde de Kamélia
Bruxelles, Belgium
AbeBooks seller since October 13, 2020
Shipping rates from Belgium to U.S.A.
| Item | 25 to 45 business days | 8 to 14 business days |
|---|---|---|
| First item | US$ 24.64 | US$ 26.88 |
Payment methods
Store description
Le Monde de Kamélia est un e-shop spécialisé dans la vente de livres neufs et d’occasions. Notre e-shop est présent sur des prestigieuses places de marchés. Nous mettons tout en oeuvre pour garantir un service impeccable.
Specialty
généralisteSeller's business information
Bibliopolis
Avenue Emile De Mot 23
Bruxelles, Belgium 1000
Shipping terms
Les produits sont livrés à l’adresse de livraison que vous avez indiquée au cours du processus de commande. Bibliopolis ne pourra être tenu responsable des conséquences dues à un retard d’acheminement.
La livraison en Belgique Métropolitaine sera effectuée par La poste. Les retards éventuels ne donnent pas le droit à l’acheteur de réclamer des dommages et intérêts.
Les livraisons dans les pays de la CEE sont effectuées par La poste ou pas un service poste international, pour les livraisons hors de la CEE les livraisons sont effectuées par les services postaux internationaux.Sont considérés comme cas de force majeure déchargeant le vendeur de son obligation de livrer, la guerre, l’émeute, l’incendie, les grèves, les accidents et l’impossibilité d’être approvisionnés.
Les marchandises voyagent toujours aux risques et périls du destinataire. Vérifiez toujours votre colis à l’arrivée. Si le colis présente des défauts (article manquant, dégradation), vous devez refuser la livraison auprès du transporteur.
Pour les livraisons hors de la Belgique métropolitaine le client s’engage a régler toutes les taxes dues a l’importation de produits, droit de douane, taxe sur la valeur ajoutée, et toutes autres taxes dues en vertu des lois du pays de réception de la commande.