How can you support me?
All of the articles, videos, and open source contributions that are made here are funded directly by individuals and companies through donations.
- GitHub Sponsors is the preferred way, as it has the lowest fees
- Patreon is an alternative I still have for historical reasons
The "Silver" tier gives you advance access to articles and videos, one week before they're made available to everyone else. Every piece of content ends up publicly available eventually — I consider my work a public service.
For those who cannot afford to pitch in financially, you can still help:
- Follow me on Bluesky or Mastodon
- Subscribe to my YouTube channel
- Subscribe to my RSS feed
- Send me good vibes by e-mail
I'm extremely lucky to be able to contribute to the Rust ecosystem as an independent, and can only do it through the support of people like you.
Thank you so much for your continued support, I owe y'all everything.
Here's another article just for you:
Recursive iterators in Rust
I've been looking for this blog post everywhere, but it doesn't exist, so I guess it's my turn to write about Some Fun with Rust.
The task at hand
Let's say you have a recursive, acyclic data structure, like so:
struct Node {
values: Vec<i32>,
children: Vec<Node>,
}
This allows you to represent a tree-like structure: