display_tree
display_tree copied to clipboard
Simple, automatic, and customizable tree pretty-printing in Rust.
Something like this doesn't work, ```rust #[derive(Debug, Clone, DisplayTree)] pub enum Html { Text(String), Element { tag: String, /// Can't use this `#[tree]` children: Vec, } } ``` I'm cloned...
The following code fails to build: ```rust #[derive(DisplayTree)] struct Hello { field: T, } ``` The error message: ``` error[E0277]: `T` doesn't implement `std::fmt::Display` --> common/src/lib.rs:27:10 | 27 | #[derive(DisplayTree)]...