(&mut self, label: &str, children: Vec<Self>)
| 233 | } |
| 234 | |
| 235 | fn group(&mut self, label: &str, children: Vec<Self>) { |
| 236 | if !children.is_empty() { |
| 237 | self.children.push(Self { |
| 238 | label: label.into(), |
| 239 | children, |
| 240 | }); |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | fn render(&self) -> String { |
| 245 | fn clean(label: &str) -> String { |