pub fn config<F, R>(f: F) -> Result<R, ConfigAccessError>where F: FnOnce(&mut Config) -> R,
auto-collect
Access the configuration.
Returns Err if the configuration is already being accessed.
Err
Panics if the provided closure panics.
let res = config(|config| { // Edit the configuration }).unwrap();