Writing a Postgres SQL Pretty Printer in Rust: Part 1.5

Last week I wrote the first post in this series, where I introduced the project and wrote about generating Rust code for the parsed Postgres AST.
I also wrote about the need for wrapper enums in the generated code, but I don’t think I went into enough det… Read more

Similar

A tour of dyn Trait in Rust

Rust's type-erasing dyn Trait offers a way to treat different implementors of a trait in a homogenous fashion while remaining strictly and statically (i.e. compile-time) typed. For example: if you want a Vec of values which implement your trait, but they... (more…)

Read more »