(metric: Metric)
| 150 | } |
| 151 | |
| 152 | fn metric_scope(metric: Metric) -> MetricScope { |
| 153 | METRIC_CARDS |
| 154 | .iter() |
| 155 | .find(|card| card.metric == metric) |
| 156 | .expect("catalog covers every metric") |
| 157 | .scope |
| 158 | } |
| 159 | |
| 160 | fn inventory(root: Node<'_>) -> Result<Vec<Node<'_>>, String> { |
| 161 | let mut result = Vec::new(); |