Representing Trees in Rust

I recently wanted to create an n-tree in Rust for a small project, and found a few resources. I’ve put together a small example that heavily relies on Box types.

While an impl Trait can potentially work here, they’re not yet supported on trait functions.

Playground link here.

(02/09/2020 edit: Updated to use dyn traits.)

Written on March 10, 2019