Resets all variables to their default value.
(&mut self)
| 522 | |
| 523 | /// Resets all variables to their default value. |
| 524 | pub fn reset_all(&mut self) { |
| 525 | let names: Vec<_> = self.vars.keys().copied().collect(); |
| 526 | for name in names { |
| 527 | self.vars[name].reset(false); |
| 528 | } |
| 529 | } |
| 530 | |
| 531 | /// Returns a [`Var`] representing the configuration parameter with the |
| 532 | /// specified name. |