(&self, var: &VarDefinition)
| 458 | } |
| 459 | |
| 460 | fn expect_value<V: Value>(&self, var: &VarDefinition) -> &V { |
| 461 | let var = self |
| 462 | .vars |
| 463 | .get(var.name) |
| 464 | .expect("provided var should be in state"); |
| 465 | let val = var.value_dyn(); |
| 466 | val.as_any().downcast_ref::<V>().expect("success") |
| 467 | } |
| 468 | |
| 469 | /// Returns an iterator over the configuration parameters and their current |
| 470 | /// values for this session. |
no test coverage detected