May 2019
Intermediate to advanced
698 pages
17h 21m
English
Metaprogramming is a concept that changes the way you look at instructions and data in a program. It allows you to generate new code by treating instructions like any other piece of data. Many languages have support for metaprogramming, for example, Lisp's macros, C's #define construct, and Python's metaclasses. Rust is no different and provides many forms of metaprogramming, which we'll explore in this chapter.
In this chapter, we will look at the following topics:
Read now
Unlock full access