A Mirror for Rust: Compile-Time Reflection Report
A plan for generic compile-time introspection in Rust, without the usual run-time baggage.
With a powerful trait system, compile-time constants, and where
-and-:
-style bounding for types and constants, Rust’s take on generic functions has been a refreshing departure from the anything-goes, Wild Wild West, errors-only-when-called template system of C++. Furthermore, its macro system has been a much needed replacement of C’s underpowered macro system, allowing users to actually generate code in a consistent and dependable manner at compile-time, with the ever-powerful…