How Powerful is Const?
Rust Programming LanguageRust's focus on performance has led to the creation of various zero-runtime-cost abstractions. As a result, Rust has adopted compile-time metaprogramming features around its `const` keyword. While many Rustaceans are familiar with techniques such as computing numbers or iterating over data, that only scratches the surface of what `const` is capable of. This talk will teach you how `const` can be used to reduce the cost of FFI, define types in unique ways, and perform logic over trait implementations.