Implementing a Type-safe printf in Rust (2020)
Implementing a Type-safe printf in Rust (2020)
willcrichton.net Implementing a Type-safe printf in Rust | Will Crichton
I show how to use heterogeneous lists and traits to implement a type-safe printf in Rust. These mechanisms can ensure that two variadic argument lists share important properties, like the number of format string holes matches the number of printf arguments.
<a href="https://lobste.rs/s/ajebuy/type_level_programming_rust_2020" rel="ugc">context</a> Comments
0 comments