Rust syntactic patterns for creating a tree of different types?

48 · Users Rust Lang · May 11, 2026, 6:51 p.m.
Summary
The blog post explores the differences between Rust and Swift/Kotlin in terms of syntax for building object trees, specifically focusing on the use of closures and builder patterns in Rust compared to keyword arguments in other languages. The author raises the question of how to effectively create a tree structure in Rust, considering the limitations and offering potential solutions like macros.