Rust Generate Unlimited Structs with Macro - Part 3 - Deep Dive into Rust Macro - Detailed Example

Опубликовано: 10 Октябрь 2024
на канале: Daily dose of Rust Language
281
7

Here is Part 3 of this series where we explore the power of Rust Macros. In this video, we are going to explore how to create a macro in rust that will automatically generate unlimited Structs by calling a custom macro we will create.

All the generated Structs will have getters and setters for all the fields.

All the structs will also have an associated called "new" that will generate instances of the.

== Related Videos ==
Part 1 - Macros In Rust    • Rust macro Is So Easy to Understand  

Part 2 - Macros - Auto generate functions with Macros    • Rust macro Is So Easy to Understand  

== Connect with us ==
Website: https://daily-dose-of-rust-language.p...
Youtube Subscribe: https://bit.ly/ytddrust
Facebook: https://bit.ly/fbddrust
Twitter: https://bit.ly/twddrust
Linkedin: https://bit.ly/linkedinddrust

== Table of Content ==
0:00 Intro