Skip Navigation
Lobste.rs @lemmy.bestiver.se RSS Bot @lemmy.bestiver.se
BOT

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.

0
0 comments