In this video we take a look at how to define and use simple macros that generate code for us at compile time!
Complete Rustlings Tutorial Playlist 👉 https://www.youtube.com/playlist?list=PLauX9TuJ8sfyaLPZ1udS3zS_V9YXdsbtc
Exercise solutions: https://github.com/PascalPrecht/rustlings/commits/solutions
---
0:00 Intro
0:27 Exercise 1
2:55 Exercise 2
4:13 Exercise 3
4:55 Exercise 4
6:33 Exercise 5
8:59 Outro
---
Other Rust content by Pascal:
• Write your first Program in Rust Course: https://egghead.io/courses/write-your-first-program-with-the-rust-language
• Basic Data Types in Rust: https://egghead.io/playlists/data-types-in-rust-ab72
• Rust Articles: https://blog.thoughtram.io/categories/rust
• Rust For Beginners Newsletter: https://blog.thoughtram.io/categories/rust
---
Want to master Git? Check out REBASE: https://rebase-book.com/
---
Pascal on Twitter: https://twitter.com/PascalPrecht