(&mut self, label: &str, children: Vec<Self>)
| 275 | } |
| 276 | |
| 277 | fn group(&mut self, label: &str, children: Vec<Self>) { |
| 278 | if !children.is_empty() { |
| 279 | self.children.push(Self { |
| 280 | label: label.into(), |
| 281 | children, |
| 282 | }); |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | fn render(&self) -> String { |
| 287 | fn clean(label: &str) -> String { |